session

package
v0.0.0-...-7d41a23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package session implements local session management for the owl CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Version string `yaml:"version"`
	Realm   string `yaml:"realm"`
	Unit    string `yaml:"unit"`
	// contains filtered or unexported fields
}

Session store context in between commands

func NewSession

func NewSession(sourcefile string) *Session

NewSession creates a new session

func (*Session) Dump

func (s *Session) Dump() error

Dump session into file

func (*Session) Restore

func (s *Session) Restore() (*Session, error)

Restore session from file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL