Documentation ¶
Index ¶
- func WithIncludeSecrets() func(*Nmstate)
- func WithIncludeStatusData() func(*Nmstate)
- func WithKernelOnly() func(*Nmstate)
- func WithLogsWritter(log_writter io.Writer) func(*Nmstate)
- func WithMemoryOnly() func(*Nmstate)
- func WithNoCommit() func(*Nmstate)
- func WithNoVerify() func(*Nmstate)
- func WithRunningConfigOnly() func(*Nmstate)
- func WithTimeout(timeout time.Duration) func(*Nmstate)
- type Nmstate
- func (n *Nmstate) ApplyNetState(state string) (string, error)
- func (n *Nmstate) CommitCheckpoint(checkpoint string) (string, error)
- func (n *Nmstate) GenerateConfiguration(state string) (string, error)
- func (n *Nmstate) RetrieveNetState() (string, error)
- func (n *Nmstate) RollbackCheckpoint(checkpoint string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithIncludeSecrets ¶
func WithIncludeSecrets() func(*Nmstate)
func WithIncludeStatusData ¶
func WithIncludeStatusData() func(*Nmstate)
func WithKernelOnly ¶
func WithKernelOnly() func(*Nmstate)
func WithLogsWritter ¶
func WithMemoryOnly ¶
func WithMemoryOnly() func(*Nmstate)
func WithNoCommit ¶
func WithNoCommit() func(*Nmstate)
func WithNoVerify ¶
func WithNoVerify() func(*Nmstate)
func WithRunningConfigOnly ¶
func WithRunningConfigOnly() func(*Nmstate)
func WithTimeout ¶
Types ¶
type Nmstate ¶
type Nmstate struct {
// contains filtered or unexported fields
}
func (*Nmstate) ApplyNetState ¶
Apply the network state in json format. This function returns the applied network state or an error.
func (*Nmstate) CommitCheckpoint ¶
Commit the checkpoint path provided. This function returns the committed checkpoint path or an error.
func (*Nmstate) GenerateConfiguration ¶
GenerateConfiguration generates the configuration for the state provided. This function returns the configuration files for the state provided.
func (*Nmstate) RetrieveNetState ¶
Retrieve the network state in json format. This function returns the current network state or an error.
Click to show internal directories.
Click to hide internal directories.