omcmd

package
v0.0.0-...-63b02d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFlagInvalid = errors.New("invalid command flag")

	ErrPrint = errors.New("print")

	ErrClientRequest = errors.New("client request")

	ErrClientStatusCode = errors.New("client request unexpected status code")

	ErrEventKindUnexpected = errors.New("unexpected event kind")

	ErrFetchFile = errors.New("fetch file")

	ErrInstallFile = errors.New("install file")
)
View Source
var (
	ErrCmdDaemonAuth = errors.New("command daemon auth")
)
View Source
var (
	ErrCmdDaemonJoin = errors.New("command daemon join")
)

Functions

func CmdNodeVersion

func CmdNodeVersion()

Types

type CmdArrayLs

type CmdArrayLs struct {
	OptsGlobal
}

func (*CmdArrayLs) Run

func (t *CmdArrayLs) Run() error

type CmdClusterAbort

type CmdClusterAbort struct {
	OptsGlobal
	OptsAsync
}

func (*CmdClusterAbort) Run

func (t *CmdClusterAbort) Run() error

type CmdClusterFreeze

type CmdClusterFreeze struct {
	OptsGlobal
	OptsAsync
}

func (*CmdClusterFreeze) Run

func (t *CmdClusterFreeze) Run() error

type CmdClusterLogs

type CmdClusterLogs struct {
	OptsGlobal
	OptsLogs
	NodeSelector string
}

func (*CmdClusterLogs) Run

func (t *CmdClusterLogs) Run() error

type CmdClusterUnfreeze

type CmdClusterUnfreeze struct {
	OptsGlobal
	OptsAsync
}

func (*CmdClusterUnfreeze) Run

func (t *CmdClusterUnfreeze) Run() error

type CmdDNSDump

type CmdDNSDump struct {
	OptsGlobal
}

func (*CmdDNSDump) Run

func (t *CmdDNSDump) Run() error

type CmdDaemonAuth

type CmdDaemonAuth struct {
	OptsGlobal
	Roles    []string
	Duration time.Duration
	Out      []string
}

func (*CmdDaemonAuth) Run

func (t *CmdDaemonAuth) Run() error

type CmdDaemonCommon

type CmdDaemonCommon struct{}

type CmdDaemonJoin

type CmdDaemonJoin struct {
	CmdDaemonCommon

	Node   string
	Server string
	Token  string

	// Timeout is the maximum duration for leave
	Timeout time.Duration
}

func (*CmdDaemonJoin) Run

func (t *CmdDaemonJoin) Run() error

type CmdDaemonLeave

type CmdDaemonLeave struct {
	CmdDaemonCommon

	// Timeout is the maximum duration for leave
	Timeout time.Duration

	// APINode is a cluster node where the leave request will be posted
	APINode string
	// contains filtered or unexported fields
}

func (*CmdDaemonLeave) Run

func (t *CmdDaemonLeave) Run() (err error)

type CmdDaemonRelayStatus

type CmdDaemonRelayStatus struct {
	OptsGlobal
}

func (*CmdDaemonRelayStatus) Run

func (t *CmdDaemonRelayStatus) Run() error

type CmdDaemonRestart

type CmdDaemonRestart struct {
	OptsGlobal
	Debug        bool
	NodeSelector string
}

func (*CmdDaemonRestart) Run

func (t *CmdDaemonRestart) Run() error

Run functions restart daemon.

The daemon restart is asynchronous when node selector is used

type CmdDaemonRunning

type CmdDaemonRunning struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdDaemonRunning) Run

func (t *CmdDaemonRunning) Run() error

type CmdDaemonShutdown

type CmdDaemonShutdown struct {
	OptsGlobal
	NodeSelector string

	// Timeout is the maximum duration for shutdown
	Timeout time.Duration
}

func (*CmdDaemonShutdown) Run

func (t *CmdDaemonShutdown) Run() error

type CmdDaemonStart

type CmdDaemonStart struct {
	OptsGlobal
	Debug      bool
	Foreground bool
	CPUProfile string
}

func (*CmdDaemonStart) Run

func (t *CmdDaemonStart) Run() error

type CmdDaemonStats

type CmdDaemonStats struct {
	OptsGlobal
}

func (*CmdDaemonStats) Run

func (t *CmdDaemonStats) Run() error

type CmdDaemonStatus

type CmdDaemonStatus struct {
	OptsGlobal
	Watch    bool
	Sections string
}

func (*CmdDaemonStatus) Run

func (t *CmdDaemonStatus) Run() error

type CmdDaemonStop

type CmdDaemonStop struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdDaemonStop) Run

func (t *CmdDaemonStop) Run() error

type CmdKeystoreAdd

type CmdKeystoreAdd struct {
	OptsGlobal
	OptsLock
	Key   string
	From  string
	Value string
}

func (*CmdKeystoreAdd) Run

func (t *CmdKeystoreAdd) Run(selector, kind string) error

type CmdKeystoreChange

type CmdKeystoreChange struct {
	OptsGlobal
	Key   string
	From  string
	Value string
}

func (*CmdKeystoreChange) Run

func (t *CmdKeystoreChange) Run(selector, kind string) error

type CmdKeystoreDecode

type CmdKeystoreDecode struct {
	OptsGlobal
	Key string
}

func (*CmdKeystoreDecode) Run

func (t *CmdKeystoreDecode) Run(selector, kind string) error

type CmdKeystoreInstall

type CmdKeystoreInstall struct {
	OptsGlobal
	NodeSelector string
	Key          string
}

func (*CmdKeystoreInstall) Run

func (t *CmdKeystoreInstall) Run(selector, kind string) error

type CmdKeystoreKeys

type CmdKeystoreKeys struct {
	OptsGlobal
	Match string
}

func (*CmdKeystoreKeys) Run

func (t *CmdKeystoreKeys) Run(selector, kind string) error

type CmdKeystoreRemove

type CmdKeystoreRemove struct {
	OptsGlobal
	Key string
}

func (*CmdKeystoreRemove) Run

func (t *CmdKeystoreRemove) Run(selector, kind string) error

type CmdNetworkIPLs

type CmdNetworkIPLs struct {
	OptsGlobal
	Name string
}

func (*CmdNetworkIPLs) Run

func (t *CmdNetworkIPLs) Run() error

type CmdNetworkLs

type CmdNetworkLs struct {
	OptsGlobal
	Name string
}

func (*CmdNetworkLs) Run

func (t *CmdNetworkLs) Run() error

type CmdNetworkSetup

type CmdNetworkSetup struct {
	OptsGlobal
}

func (*CmdNetworkSetup) Run

func (t *CmdNetworkSetup) Run() error

type CmdNodeAbort

type CmdNodeAbort struct {
	OptsGlobal
	OptsAsync
	NodeSelector string
}

func (*CmdNodeAbort) Run

func (t *CmdNodeAbort) Run() error

type CmdNodeCapabilitiesList

type CmdNodeCapabilitiesList struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeCapabilitiesList) Run

func (t *CmdNodeCapabilitiesList) Run() error

type CmdNodeCapabilitiesScan

type CmdNodeCapabilitiesScan struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeCapabilitiesScan) Run

func (t *CmdNodeCapabilitiesScan) Run() error

type CmdNodeChecks

type CmdNodeChecks struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeChecks) Run

func (t *CmdNodeChecks) Run() error

type CmdNodeClear

type CmdNodeClear struct {
	OptsGlobal
}

func (*CmdNodeClear) Run

func (t *CmdNodeClear) Run() error

type CmdNodeCollectorTagAttach

type CmdNodeCollectorTagAttach struct {
	OptsGlobal
	Name       string
	AttachData *string
}

func (*CmdNodeCollectorTagAttach) Run

type CmdNodeCollectorTagCreate

type CmdNodeCollectorTagCreate struct {
	OptsGlobal
	Name    string
	Data    *string
	Exclude *string
}

func (*CmdNodeCollectorTagCreate) Run

type CmdNodeCollectorTagDetach

type CmdNodeCollectorTagDetach struct {
	OptsGlobal
	Name string
}

func (*CmdNodeCollectorTagDetach) Run

type CmdNodeCollectorTagList

type CmdNodeCollectorTagList struct {
	OptsGlobal
}

func (*CmdNodeCollectorTagList) Run

func (t *CmdNodeCollectorTagList) Run() error

type CmdNodeCollectorTagShow

type CmdNodeCollectorTagShow struct {
	OptsGlobal
	Verbose bool
}

func (*CmdNodeCollectorTagShow) Run

func (t *CmdNodeCollectorTagShow) Run() error

type CmdNodeComplianceAttachModuleset

type CmdNodeComplianceAttachModuleset struct {
	OptsGlobal
	Moduleset    string
	NodeSelector string
}

func (*CmdNodeComplianceAttachModuleset) Run

type CmdNodeComplianceAttachRuleset

type CmdNodeComplianceAttachRuleset struct {
	OptsGlobal
	NodeSelector string
	Ruleset      string
}

func (*CmdNodeComplianceAttachRuleset) Run

type CmdNodeComplianceAuto

type CmdNodeComplianceAuto struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdNodeComplianceAuto) Run

func (t *CmdNodeComplianceAuto) Run() error

type CmdNodeComplianceCheck

type CmdNodeComplianceCheck struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdNodeComplianceCheck) Run

func (t *CmdNodeComplianceCheck) Run() error

type CmdNodeComplianceDetachModuleset

type CmdNodeComplianceDetachModuleset struct {
	OptsGlobal
	Moduleset    string
	NodeSelector string
}

func (*CmdNodeComplianceDetachModuleset) Run

type CmdNodeComplianceDetachRuleset

type CmdNodeComplianceDetachRuleset struct {
	OptsGlobal
	Ruleset      string
	NodeSelector string
}

func (*CmdNodeComplianceDetachRuleset) Run

type CmdNodeComplianceEnv

type CmdNodeComplianceEnv struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
}

func (*CmdNodeComplianceEnv) Run

func (t *CmdNodeComplianceEnv) Run() error

type CmdNodeComplianceFix

type CmdNodeComplianceFix struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdNodeComplianceFix) Run

func (t *CmdNodeComplianceFix) Run() error

type CmdNodeComplianceFixable

type CmdNodeComplianceFixable struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdNodeComplianceFixable) Run

type CmdNodeComplianceListModules

type CmdNodeComplianceListModules struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeComplianceListModules) Run

type CmdNodeComplianceListModuleset

type CmdNodeComplianceListModuleset struct {
	OptsGlobal
	Moduleset    string
	NodeSelector string
}

func (*CmdNodeComplianceListModuleset) Run

type CmdNodeComplianceListRuleset

type CmdNodeComplianceListRuleset struct {
	OptsGlobal
	Ruleset      string
	NodeSelector string
}

func (*CmdNodeComplianceListRuleset) Run

type CmdNodeComplianceShowModuleset

type CmdNodeComplianceShowModuleset struct {
	OptsGlobal
	Moduleset    string
	NodeSelector string
}

func (*CmdNodeComplianceShowModuleset) Run

type CmdNodeComplianceShowRuleset

type CmdNodeComplianceShowRuleset struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeComplianceShowRuleset) Run

type CmdNodeDoc

type CmdNodeDoc struct {
	OptsGlobal
	Keyword string
	Driver  string
}

func (*CmdNodeDoc) Run

func (t *CmdNodeDoc) Run() error

type CmdNodeDrain

type CmdNodeDrain struct {
	OptsGlobal
	OptsAsync
	NodeSelector string
}

func (*CmdNodeDrain) Run

func (t *CmdNodeDrain) Run() error

type CmdNodeDrivers

type CmdNodeDrivers struct {
	OptsGlobal
}

func (*CmdNodeDrivers) Run

func (t *CmdNodeDrivers) Run() error

type CmdNodeEditConfig

type CmdNodeEditConfig struct {
	OptsGlobal
	Discard bool
	Recover bool
}

func (*CmdNodeEditConfig) Run

func (t *CmdNodeEditConfig) Run() error

type CmdNodeEval

type CmdNodeEval struct {
	OptsGlobal
	OptsLock
	Keywords     []string
	Impersonate  string
	NodeSelector string
}

func (*CmdNodeEval) Run

func (t *CmdNodeEval) Run() error

type CmdNodeEvents

type CmdNodeEvents struct {
	OptsGlobal
	Filters  []string
	Duration time.Duration
	Limit    uint64
	Template string
	Wait     bool

	NodeSelector string
	// contains filtered or unexported fields
}

func (*CmdNodeEvents) Run

func (t *CmdNodeEvents) Run() error

type CmdNodeFreeze

type CmdNodeFreeze struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeFreeze) Run

func (t *CmdNodeFreeze) Run() error

type CmdNodeGet

type CmdNodeGet struct {
	OptsGlobal
	OptsLock
	Eval         bool
	Impersonate  string
	Keywords     []string
	NodeSelector string
}

func (*CmdNodeGet) Run

func (t *CmdNodeGet) Run() error

type CmdNodeLogs

type CmdNodeLogs struct {
	OptsGlobal
	OptsLogs
	NodeSelector string
}

func (*CmdNodeLogs) Run

func (t *CmdNodeLogs) Run() error

type CmdNodeLs

type CmdNodeLs struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeLs) Run

func (t *CmdNodeLs) Run() error

type CmdNodePRKey

type CmdNodePRKey struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePRKey) Run

func (t *CmdNodePRKey) Run() error

type CmdNodePrintConfig

type CmdNodePrintConfig struct {
	OptsGlobal
	Eval         bool
	Impersonate  string
	NodeSelector string
}

func (*CmdNodePrintConfig) Run

func (t *CmdNodePrintConfig) Run() error

type CmdNodePrintSchedule

type CmdNodePrintSchedule struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePrintSchedule) Run

func (t *CmdNodePrintSchedule) Run() error

type CmdNodePushAsset

type CmdNodePushAsset struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePushAsset) Run

func (t *CmdNodePushAsset) Run() error

type CmdNodePushDisks

type CmdNodePushDisks struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePushDisks) Run

func (t *CmdNodePushDisks) Run() error

type CmdNodePushPatch

type CmdNodePushPatch struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePushPatch) Run

func (t *CmdNodePushPatch) Run() error

type CmdNodePushPkg

type CmdNodePushPkg struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePushPkg) Run

func (t *CmdNodePushPkg) Run() error

type CmdNodeRegister

type CmdNodeRegister struct {
	OptsGlobal
	User         string
	Password     string
	App          string
	NodeSelector string
}

func (*CmdNodeRegister) Run

func (t *CmdNodeRegister) Run() error

type CmdNodeRelayStatus

type CmdNodeRelayStatus struct {
	OptsGlobal
	Relays string
}

func (*CmdNodeRelayStatus) Run

func (t *CmdNodeRelayStatus) Run() error

type CmdNodeSet

type CmdNodeSet struct {
	OptsGlobal
	OptsLock
	KeywordOps   []string
	NodeSelector string
}

func (*CmdNodeSet) Run

func (t *CmdNodeSet) Run() error

type CmdNodeSysreport

type CmdNodeSysreport struct {
	OptsGlobal
	Force        bool
	NodeSelector string
}

func (*CmdNodeSysreport) Run

func (t *CmdNodeSysreport) Run() error

type CmdNodeUnfreeze

type CmdNodeUnfreeze struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeUnfreeze) Run

func (t *CmdNodeUnfreeze) Run() error

type CmdNodeUnset

type CmdNodeUnset struct {
	OptsGlobal
	OptsLock
	Keywords     []string
	Sections     []string
	NodeSelector string
}

func (*CmdNodeUnset) Run

func (t *CmdNodeUnset) Run() error

type CmdNodeUpdate

type CmdNodeUpdate struct {
	OptsGlobal
	OptsLock
	Delete       []string
	Set          []string
	Unset        []string
	NodeSelector string
}

func (*CmdNodeUpdate) Run

func (t *CmdNodeUpdate) Run() error

type CmdNodeValidateConfig

type CmdNodeValidateConfig struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeValidateConfig) Run

func (t *CmdNodeValidateConfig) Run() error

type CmdObjectAbort

type CmdObjectAbort struct {
	OptsGlobal
	OptsAsync
}

func (*CmdObjectAbort) Run

func (t *CmdObjectAbort) Run(selector, kind string) error

type CmdObjectBoot

type CmdObjectBoot struct {
	OptsGlobal
	OptsResourceSelector
	OptTo
	OptsLock
	NodeSelector string
}

func (*CmdObjectBoot) Run

func (t *CmdObjectBoot) Run(selector, kind string) error

type CmdObjectClear

type CmdObjectClear struct {
	OptsGlobal
}

func (*CmdObjectClear) Run

func (t *CmdObjectClear) Run(selector, kind string) error

type CmdObjectCollectorTagAttach

type CmdObjectCollectorTagAttach struct {
	OptsGlobal
	Name       string
	AttachData *string
}

func (*CmdObjectCollectorTagAttach) Run

func (t *CmdObjectCollectorTagAttach) Run(selector, kind string) error

type CmdObjectCollectorTagCreate

type CmdObjectCollectorTagCreate struct {
	OptsGlobal
	Name    string
	Data    *string
	Exclude *string
}

func (*CmdObjectCollectorTagCreate) Run

func (t *CmdObjectCollectorTagCreate) Run(selector, kind string) error

type CmdObjectCollectorTagDetach

type CmdObjectCollectorTagDetach struct {
	OptsGlobal
	Name string
}

func (*CmdObjectCollectorTagDetach) Run

func (t *CmdObjectCollectorTagDetach) Run(selector, kind string) error

type CmdObjectCollectorTagList

type CmdObjectCollectorTagList struct {
	OptsGlobal
}

func (*CmdObjectCollectorTagList) Run

func (t *CmdObjectCollectorTagList) Run(selector, kind string) error

type CmdObjectCollectorTagShow

type CmdObjectCollectorTagShow struct {
	OptsGlobal
	Verbose bool
}

func (*CmdObjectCollectorTagShow) Run

func (t *CmdObjectCollectorTagShow) Run(selector, kind string) error

type CmdObjectComplianceAttachModuleset

type CmdObjectComplianceAttachModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceAttachModuleset) Run

func (t *CmdObjectComplianceAttachModuleset) Run(selector, kind string) error

type CmdObjectComplianceAttachRuleset

type CmdObjectComplianceAttachRuleset struct {
	OptsGlobal
	Ruleset string
}

func (*CmdObjectComplianceAttachRuleset) Run

func (t *CmdObjectComplianceAttachRuleset) Run(selector, kind string) error

type CmdObjectComplianceAuto

type CmdObjectComplianceAuto struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdObjectComplianceAuto) Run

func (t *CmdObjectComplianceAuto) Run(selector, kind string) error

type CmdObjectComplianceCheck

type CmdObjectComplianceCheck struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdObjectComplianceCheck) Run

func (t *CmdObjectComplianceCheck) Run(selector, kind string) error

type CmdObjectComplianceDetachModuleset

type CmdObjectComplianceDetachModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceDetachModuleset) Run

func (t *CmdObjectComplianceDetachModuleset) Run(selector, kind string) error

type CmdObjectComplianceDetachRuleset

type CmdObjectComplianceDetachRuleset struct {
	OptsGlobal
	Ruleset string
}

func (*CmdObjectComplianceDetachRuleset) Run

func (t *CmdObjectComplianceDetachRuleset) Run(selector, kind string) error

type CmdObjectComplianceEnv

type CmdObjectComplianceEnv struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
}

func (*CmdObjectComplianceEnv) Run

func (t *CmdObjectComplianceEnv) Run(selector, kind string) error

type CmdObjectComplianceFix

type CmdObjectComplianceFix struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdObjectComplianceFix) Run

func (t *CmdObjectComplianceFix) Run(selector, kind string) error

type CmdObjectComplianceFixable

type CmdObjectComplianceFixable struct {
	OptsGlobal
	Moduleset    string
	Module       string
	NodeSelector string
	Force        bool
	Attach       bool
}

func (*CmdObjectComplianceFixable) Run

func (t *CmdObjectComplianceFixable) Run(selector, kind string) error

type CmdObjectComplianceListModules

type CmdObjectComplianceListModules struct {
	OptsGlobal
}

func (*CmdObjectComplianceListModules) Run

func (t *CmdObjectComplianceListModules) Run(selector, kind string) error

type CmdObjectComplianceListModuleset

type CmdObjectComplianceListModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceListModuleset) Run

func (t *CmdObjectComplianceListModuleset) Run(selector, kind string) error

type CmdObjectComplianceListRuleset

type CmdObjectComplianceListRuleset struct {
	OptsGlobal
	Ruleset string
}

func (*CmdObjectComplianceListRuleset) Run

func (t *CmdObjectComplianceListRuleset) Run(selector, kind string) error

type CmdObjectComplianceShowModuleset

type CmdObjectComplianceShowModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceShowModuleset) Run

func (t *CmdObjectComplianceShowModuleset) Run(selector, kind string) error

type CmdObjectComplianceShowRuleset

type CmdObjectComplianceShowRuleset struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdObjectComplianceShowRuleset) Run

func (t *CmdObjectComplianceShowRuleset) Run(selector, kind string) error

type CmdObjectCreate

type CmdObjectCreate struct {
	OptsGlobal
	OptsLock
	Config      string
	Keywords    []string
	Env         string
	Interactive bool
	Provision   bool
	Restore     bool
	Force       bool
	Namespace   string
	// contains filtered or unexported fields
}

func (*CmdObjectCreate) Do

func (t *CmdObjectCreate) Do() error

func (*CmdObjectCreate) Run

func (t *CmdObjectCreate) Run(selector, kind string) error

type CmdObjectDelete

type CmdObjectDelete struct {
	OptsGlobal
	OptsLock
	NodeSelector string
}

func (*CmdObjectDelete) Run

func (t *CmdObjectDelete) Run(selector, kind string) error

type CmdObjectDisable

type CmdObjectDisable struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
}

func (*CmdObjectDisable) Run

func (t *CmdObjectDisable) Run(selector, kind string) error

type CmdObjectDoc

type CmdObjectDoc struct {
	OptsGlobal
	Keyword string
	Driver  string
}

func (*CmdObjectDoc) Run

func (t *CmdObjectDoc) Run(selector, kind string) error

type CmdObjectEditConfig

type CmdObjectEditConfig struct {
	OptsGlobal
	Discard bool
	Recover bool
}

func (*CmdObjectEditConfig) Run

func (t *CmdObjectEditConfig) Run(selector, kind string) error

type CmdObjectEditKey

type CmdObjectEditKey struct {
	OptsGlobal
	Key string
}

func (*CmdObjectEditKey) Run

func (t *CmdObjectEditKey) Run(selector, kind string) error

type CmdObjectEnable

type CmdObjectEnable struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
}

func (*CmdObjectEnable) Run

func (t *CmdObjectEnable) Run(selector, kind string) error

type CmdObjectEnter

type CmdObjectEnter struct {
	ObjectSelector string
	RID            string
}

func (*CmdObjectEnter) Run

func (t *CmdObjectEnter) Run(selector, kind string) error

type CmdObjectEval

type CmdObjectEval struct {
	OptsGlobal
	Keywords    []string
	Impersonate string
}

func (*CmdObjectEval) Run

func (t *CmdObjectEval) Run(selector, kind string) error

type CmdObjectFreeze

type CmdObjectFreeze struct {
	OptsGlobal
	OptsAsync
	NodeSelector string
}

func (*CmdObjectFreeze) Run

func (t *CmdObjectFreeze) Run(selector, kind string) error

type CmdObjectGet

type CmdObjectGet struct {
	OptsGlobal
	Eval        bool
	Impersonate string
	Keywords    []string
}

func (*CmdObjectGet) Run

func (t *CmdObjectGet) Run(selector, kind string) error

type CmdObjectGiveback

type CmdObjectGiveback struct {
	OptsGlobal
	OptsAsync
	OptsLock
}

func (*CmdObjectGiveback) Run

func (t *CmdObjectGiveback) Run(selector, kind string) error

type CmdObjectInstanceLs

type CmdObjectInstanceLs struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdObjectInstanceLs) Run

func (t *CmdObjectInstanceLs) Run(selector, kind string) error

type CmdObjectLogs

type CmdObjectLogs struct {
	OptsGlobal
	OptsLogs
	NodeSelector string
}

func (*CmdObjectLogs) Run

func (t *CmdObjectLogs) Run(selector, kind string) error

type CmdObjectLs

type CmdObjectLs struct {
	OptsGlobal
}

func (*CmdObjectLs) Run

func (t *CmdObjectLs) Run(selector, kind string) error

type CmdObjectMonitor

type CmdObjectMonitor struct {
	OptsGlobal
	Watch    bool
	Sections string
}

func (*CmdObjectMonitor) Run

func (t *CmdObjectMonitor) Run(selector, kind string) error

type CmdObjectPRStart

type CmdObjectPRStart struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	OptTo
	NodeSelector string
	Force        bool
}

func (*CmdObjectPRStart) Run

func (t *CmdObjectPRStart) Run(selector, kind string) error

type CmdObjectPRStop

type CmdObjectPRStop struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	OptTo
	NodeSelector string
	Force        bool
}

func (*CmdObjectPRStop) Run

func (t *CmdObjectPRStop) Run(selector, kind string) error

type CmdObjectPrintConfig

type CmdObjectPrintConfig struct {
	OptsGlobal
	Eval        bool
	Impersonate string
}

func (*CmdObjectPrintConfig) Run

func (t *CmdObjectPrintConfig) Run(selector, kind string) error

type CmdObjectPrintConfigMtime

type CmdObjectPrintConfigMtime struct {
	OptsGlobal
}

func (*CmdObjectPrintConfigMtime) Run

func (t *CmdObjectPrintConfigMtime) Run(selector, kind string) error

type CmdObjectPrintDevices

type CmdObjectPrintDevices struct {
	OptsGlobal
	NodeSelector string
	Roles        string
}

func (*CmdObjectPrintDevices) Run

func (t *CmdObjectPrintDevices) Run(selector, kind string) error

type CmdObjectPrintSchedule

type CmdObjectPrintSchedule struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdObjectPrintSchedule) Run

func (t *CmdObjectPrintSchedule) Run(selector, kind string) error

type CmdObjectPrintStatus

type CmdObjectPrintStatus struct {
	OptsGlobal
	OptsLock
	NodeSelector string
	Refresh      bool
}

func (*CmdObjectPrintStatus) Run

func (t *CmdObjectPrintStatus) Run(selector, kind string) error

type CmdObjectProvision

type CmdObjectProvision struct {
	OptsGlobal
	OptsAsync
	OptsLock
	OptsResourceSelector
	OptTo
	DisableRollback bool
	Force           bool
	Leader          bool
	NodeSelector    string
}

func (*CmdObjectProvision) Run

func (t *CmdObjectProvision) Run(selector, kind string) error

type CmdObjectPurge

type CmdObjectPurge struct {
	OptsGlobal
	OptsAsync
	OptsLock
	OptsResourceSelector
	OptTo
	NodeSelector string
	Force        bool
	Leader       bool
}

func (*CmdObjectPurge) Run

func (t *CmdObjectPurge) Run(selector, kind string) error

type CmdObjectPushResInfo

type CmdObjectPushResInfo struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	OptTo
	NodeSelector string
}

func (*CmdObjectPushResInfo) Run

func (t *CmdObjectPushResInfo) Run(selector, kind string) error

type CmdObjectResourceLs

type CmdObjectResourceLs struct {
	OptsGlobal
	OptsResourceSelector
	NodeSelector string
}

func (*CmdObjectResourceLs) Run

func (t *CmdObjectResourceLs) Run(selector, kind string) error

type CmdObjectRestart

type CmdObjectRestart struct {
	OptsGlobal
	OptsAsync
	OptsLock
	OptsResourceSelector
	OptTo
	NodeSelector    string
	Force           bool
	DisableRollback bool
}

func (*CmdObjectRestart) Run

func (t *CmdObjectRestart) Run(selector, kind string) error

type CmdObjectRun

type CmdObjectRun struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	NodeSelector string
	Cron         bool
	Confirm      bool
}

func (*CmdObjectRun) Run

func (t *CmdObjectRun) Run(selector, kind string) error

type CmdObjectSet

type CmdObjectSet struct {
	OptsGlobal
	OptsLock
	KeywordOps []string
}

func (*CmdObjectSet) Run

func (t *CmdObjectSet) Run(selector, kind string) error

type CmdObjectSetProvisioned

type CmdObjectSetProvisioned struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	NodeSelector string
}

func (*CmdObjectSetProvisioned) Run

func (t *CmdObjectSetProvisioned) Run(selector, kind string) error

type CmdObjectSetUnprovisioned

type CmdObjectSetUnprovisioned struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	NodeSelector string
}

func (*CmdObjectSetUnprovisioned) Run

func (t *CmdObjectSetUnprovisioned) Run(selector, kind string) error

type CmdObjectShutdown

type CmdObjectShutdown struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	OptTo
	Force        bool
	NodeSelector string
}

func (*CmdObjectShutdown) Run

func (t *CmdObjectShutdown) Run(selector, kind string) error

type CmdObjectStart

type CmdObjectStart struct {
	OptsGlobal
	OptsAsync
	OptsLock
	OptsResourceSelector
	OptTo
	Force           bool
	DisableRollback bool
	NodeSelector    string
}

func (*CmdObjectStart) Run

func (t *CmdObjectStart) Run(selector, kind string) error

type CmdObjectStartStandby

type CmdObjectStartStandby struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	OptTo
	Force           bool
	DisableRollback bool
	NodeSelector    string
}

func (*CmdObjectStartStandby) Run

func (t *CmdObjectStartStandby) Run(selector, kind string) error

type CmdObjectStatus

type CmdObjectStatus struct {
	OptsGlobal
	OptsLock
	Refresh      bool
	NodeSelector string
}

func (*CmdObjectStatus) Run

func (t *CmdObjectStatus) Run(selector, kind string) error

type CmdObjectStop

type CmdObjectStop struct {
	OptsGlobal
	OptsAsync
	OptsLock
	OptsResourceSelector
	OptTo
	Force        bool
	NodeSelector string
}

func (*CmdObjectStop) Run

func (t *CmdObjectStop) Run(selector, kind string) error

type CmdObjectSwitch

type CmdObjectSwitch struct {
	OptsGlobal
	OptsAsync
	OptsLock
	To string
}

func (*CmdObjectSwitch) Run

func (t *CmdObjectSwitch) Run(selector, kind string) error

type CmdObjectSyncFull

type CmdObjectSyncFull struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	Force  bool
	Target []string
}

func (*CmdObjectSyncFull) Run

func (t *CmdObjectSyncFull) Run(selector, kind string) error

type CmdObjectSyncResync

type CmdObjectSyncResync struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	Force bool
}

func (*CmdObjectSyncResync) Run

func (t *CmdObjectSyncResync) Run(selector, kind string) error

type CmdObjectSyncUpdate

type CmdObjectSyncUpdate struct {
	OptsGlobal
	OptsLock
	OptsResourceSelector
	Force  bool
	Target []string
}

func (*CmdObjectSyncUpdate) Run

func (t *CmdObjectSyncUpdate) Run(selector, kind string) error

type CmdObjectTakeover

type CmdObjectTakeover struct {
	OptsGlobal
	OptsAsync
	OptsLock
}

func (*CmdObjectTakeover) Run

func (t *CmdObjectTakeover) Run(selector, kind string) error

type CmdObjectUnfreeze

type CmdObjectUnfreeze struct {
	OptsGlobal
	OptsAsync
	NodeSelector string
}

func (*CmdObjectUnfreeze) Run

func (t *CmdObjectUnfreeze) Run(selector, kind string) error

type CmdObjectUnprovision

type CmdObjectUnprovision struct {
	OptsGlobal
	OptsAsync
	OptsLock
	OptsResourceSelector
	OptTo
	Force        bool
	Leader       bool
	NodeSelector string
}

func (*CmdObjectUnprovision) Run

func (t *CmdObjectUnprovision) Run(selector, kind string) error

type CmdObjectUnset

type CmdObjectUnset struct {
	OptsGlobal
	OptsLock
	Keywords []string
	Sections []string
}

func (*CmdObjectUnset) Run

func (t *CmdObjectUnset) Run(selector, kind string) error

type CmdObjectUpdate

type CmdObjectUpdate struct {
	OptsGlobal
	OptsLock
	Delete []string
	Set    []string
	Unset  []string
}

func (*CmdObjectUpdate) Run

func (t *CmdObjectUpdate) Run(selector, kind string) error

type CmdObjectValidateConfig

type CmdObjectValidateConfig struct {
	OptsGlobal
	OptsLock
}

func (*CmdObjectValidateConfig) Run

func (t *CmdObjectValidateConfig) Run(selector, kind string) error

type CmdPKCS

type CmdPKCS struct {
	OptsGlobal
}

func (*CmdPKCS) Run

func (t *CmdPKCS) Run(selector, kind string) error

type CmdPoolLs

type CmdPoolLs struct {
	OptsGlobal
	Name string
}

func (*CmdPoolLs) Run

func (t *CmdPoolLs) Run() error

type CmdPoolVolumeLs

type CmdPoolVolumeLs struct {
	OptsGlobal
	Name string
}

func (*CmdPoolVolumeLs) Run

func (t *CmdPoolVolumeLs) Run() error

type CmdSecGenCert

type CmdSecGenCert struct {
	OptsGlobal
}

func (*CmdSecGenCert) Run

func (t *CmdSecGenCert) Run(selector, kind string) error

type OptTo

type OptTo struct {
	To     string
	UpTo   string // Deprecated
	DownTo string // Deprecated
}

OptTo sets a barrier when iterating over a resource lister

type OptsAsync

type OptsAsync struct {
	Watch bool
	Wait  bool
	Time  time.Duration
}

OptsAsync contains options accepted by all actions having an orchestration

type OptsGlobal

type OptsGlobal struct {
	Color          string
	Output         string
	Local          bool
	Log            string
	ObjectSelector string
	Quiet          bool
	Server         string
}

OptsGlobal contains options accepted by all actions

type OptsLock

type OptsLock struct {
	Disable bool
	Timeout time.Duration
}

OptsLock contains options accepted by all actions using an action lock

type OptsLogs

type OptsLogs struct {
	Follow bool
	Lines  int
	Filter []string
}

OptsLogs contains options used by all log commands: node logs, cluster logs, object logs

type OptsResourceSelector

type OptsResourceSelector struct {
	RID    string
	Subset string
	Tag    string
}

OptsResourceSelector contains options needed to initialize a resourceselector.Options struct

type Pivot

type Pivot map[string]rawconfig.T

Source Files

Jump to

Keyboard shortcuts

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