omcmd

package
v3.0.0-rc40 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 67 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCmdClusterJoin = errors.New("command cluster join")
)
View Source
var (
	ErrCmdClusterLeave = errors.New("command cluster leave")
)

Functions

func NewCmdNodeConfigDoc

func NewCmdNodeConfigDoc() *cobra.Command

func NewCmdObjectConfigDoc

func NewCmdObjectConfigDoc(kind string) *cobra.Command

Types

type CmdArrayList

type CmdArrayList struct {
	OptsGlobal
}

func (*CmdArrayList) Run

func (t *CmdArrayList) Run() error

type CmdClusterJoin

type CmdClusterJoin struct {
	CmdDaemonCommon

	Node string

	// TokenFile is the path of a file holding an access token with the
	// join role, created on the node to join. When empty, the
	// OSVC_JOIN_TOKEN environment variable is used.
	TokenFile string

	// Addr is the location of the Node api, in the
	// [<scheme>://]<addr>[:<port>] format. When empty, Node is used.
	// Set it when this node cannot resolve Node.
	Addr string

	// Timeout is the maximum duration for join
	Timeout time.Duration
	// contains filtered or unexported fields
}

func (*CmdClusterJoin) Run

func (t *CmdClusterJoin) Run() error

type CmdClusterLeave

type CmdClusterLeave 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

	// CredentialFile is the path of a file holding the
	// <username>:<password> of the user to create once the daemon has
	// restarted alone. When empty, the OSVC_CREDENTIAL environment
	// variable is used. Without either, no user is created.
	CredentialFile string
	// contains filtered or unexported fields
}

func (*CmdClusterLeave) Run

func (t *CmdClusterLeave) Run() error

type CmdDaemonCommon

type CmdDaemonCommon struct{}

type CmdDaemonEvents

type CmdDaemonEvents struct {
	commoncmd.CmdDaemonEvents
}

func (*CmdDaemonEvents) Run

func (t *CmdDaemonEvents) Run() error

type CmdDaemonOrchestrationList

type CmdDaemonOrchestrationList struct {
	OptsGlobal
	NodeSelector    string
	States          []string
	OrchestrationID string

	// Wait holds each request until the orchestration has ended, and is
	// how "om daemon orchestration wait" waits: the daemon answers when
	// the orchestration is over rather than when it is asked.
	Wait time.Duration

	// Unbounded says the caller named no duration and waits for as long
	// as it takes. The daemon holds one request for an hour at most, so
	// that wait is the request asked again until the orchestration ends.
	Unbounded bool
}

func (*CmdDaemonOrchestrationList) Run

func (*CmdDaemonOrchestrationList) RunWait

func (t *CmdDaemonOrchestrationList) RunWait() error

RunWait waits for the orchestration to end, reports it, and says whether it did what it was for.

The orchestration id is what the action the client submitted was answered with, and every node answers for it, so this is how a client follows an action it asked of a node it can no longer name, or that it never named.

type CmdDaemonRestart

type CmdDaemonRestart struct {
	OptsGlobal
	Debug        bool
	NodeSelector string
	CPUProfile   string
	// contains filtered or unexported fields
}

func (*CmdDaemonRestart) Run

func (t *CmdDaemonRestart) Run() error

Run functions restart daemon.

The daemon restart is asynchronous when node selector is used

type CmdDaemonRun

type CmdDaemonRun struct {
	OptsGlobal
	CPUProfile string
}

func (*CmdDaemonRun) Run

func (t *CmdDaemonRun) Run() error

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
	CPUProfile string
}

func (*CmdDaemonStart) Run

func (t *CmdDaemonStart) Run() error

type CmdDaemonStop

type CmdDaemonStop struct {
	OptsGlobal
	NodeSelector string
	// contains filtered or unexported fields
}

func (*CmdDaemonStop) Run

func (t *CmdDaemonStop) Run() error

type CmdNetworkIPList

type CmdNetworkIPList struct {
	OptsGlobal
	Name string
}

func (*CmdNetworkIPList) Run

func (t *CmdNetworkIPList) Run() error

type CmdNetworkList

type CmdNetworkList struct {
	OptsGlobal
	Name string
}

func (*CmdNetworkList) Run

func (t *CmdNetworkList) Run() error

type CmdNetworkSetup

type CmdNetworkSetup struct {
	OptsGlobal
	Names []string
}

func (*CmdNetworkSetup) Run

func (t *CmdNetworkSetup) Run() error

type CmdNodeAbort

type CmdNodeAbort struct {
	OptsGlobal
	commoncmd.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
	Local        bool
	NodeSelector string
}

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 CmdNodeConfigDoc

type CmdNodeConfigDoc struct {
	Color   string
	Output  string
	Sort    string
	Keyword string
	Driver  string
	Depth   int
}

func (*CmdNodeConfigDoc) Run

func (t *CmdNodeConfigDoc) Run() error

type CmdNodeConfigEdit

type CmdNodeConfigEdit struct {
	OptsGlobal
	Discard bool
	Recover bool
}

func (*CmdNodeConfigEdit) Run

func (t *CmdNodeConfigEdit) Run() error

type CmdNodeConfigGet

type CmdNodeConfigGet struct {
	OptsGlobal
	commoncmd.OptsLock
	Local        bool
	Eval         bool
	Impersonate  string
	Keywords     []string
	NodeSelector string
}

func (*CmdNodeConfigGet) Run

func (t *CmdNodeConfigGet) Run() error

type CmdNodeConfigShow

type CmdNodeConfigShow struct {
	NodeSelector  string
	RedactSecrets bool
	Sections      []string
}

func (*CmdNodeConfigShow) Run

func (t *CmdNodeConfigShow) Run() error

type CmdNodeConfigUpdate

type CmdNodeConfigUpdate struct {
	OptsGlobal
	commoncmd.OptsLock
	Local        bool
	Delete       []string
	Set          []string
	Unset        []string
	NodeSelector string
}

func (*CmdNodeConfigUpdate) Run

func (t *CmdNodeConfigUpdate) Run() error

type CmdNodeConfigValidate

type CmdNodeConfigValidate struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeConfigValidate) Run

func (t *CmdNodeConfigValidate) Run() error

type CmdNodeDequeue

type CmdNodeDequeue struct {
	commoncmd.OptsNodeGlobal
}

func (*CmdNodeDequeue) Run

func (t *CmdNodeDequeue) Run() error

type CmdNodeDrain

type CmdNodeDrain struct {
	OptsGlobal
	commoncmd.OptsAsync
	NodeSelector string
}

func (*CmdNodeDrain) Run

func (t *CmdNodeDrain) Run() error

type CmdNodeDrivers

type CmdNodeDrivers struct {
	Color  string
	Output string
	Sort   string
}

func (*CmdNodeDrivers) Run

func (t *CmdNodeDrivers) Run() error

type CmdNodeFreeze

type CmdNodeFreeze struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeFreeze) Run

func (t *CmdNodeFreeze) Run() error

type CmdNodeList

type CmdNodeList struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeList) Run

func (t *CmdNodeList) Run() error

type CmdNodeLogs

type CmdNodeLogs struct {
	OptsGlobal
	commoncmd.OptsLogs
	Local        bool
	NodeSelector string
}

func (*CmdNodeLogs) Run

func (t *CmdNodeLogs) Run() error

type CmdNodePRKey

type CmdNodePRKey struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodePRKey) Run

func (t *CmdNodePRKey) Run() error

type CmdNodePushArrays

type CmdNodePushArrays struct {
	OptsGlobal
	Local                       bool
	NodeSelector                string
	Array                       string
	IgnoreNoCollectorConfigured bool
}

func (*CmdNodePushArrays) Run

func (t *CmdNodePushArrays) Run() error

type CmdNodePushAsset

type CmdNodePushAsset struct {
	OptsGlobal
	Local                       bool
	DryRun                      bool
	NodeSelector                string
	IgnoreNoCollectorConfigured bool
}

func (*CmdNodePushAsset) Run

func (t *CmdNodePushAsset) Run() error

type CmdNodePushDisks

type CmdNodePushDisks struct {
	OptsGlobal
	Local                       bool
	DryRun                      bool
	NodeSelector                string
	IgnoreNoCollectorConfigured bool
}

func (*CmdNodePushDisks) Run

func (t *CmdNodePushDisks) Run() error

type CmdNodePushPkg

type CmdNodePushPkg struct {
	OptsGlobal
	Local                       bool
	DryRun                      bool
	NodeSelector                string
	IgnoreNoCollectorConfigured bool
}

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 CmdNodeRelayList

type CmdNodeRelayList struct {
	OptsGlobal
	Relays string
}

func (*CmdNodeRelayList) Run

func (t *CmdNodeRelayList) Run() error

type CmdNodeSCSIScan

type CmdNodeSCSIScan struct {
	OptsGlobal
	NodeSelector string
	HBA          string
	Target       string
	LUN          string
}

func (*CmdNodeSCSIScan) Run

func (t *CmdNodeSCSIScan) Run() error

type CmdNodeSSHTrust

type CmdNodeSSHTrust struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdNodeSSHTrust) Run

func (t *CmdNodeSSHTrust) Run() error

type CmdNodeScheduleList

type CmdNodeScheduleList struct {
	OptsGlobal
	Local        bool
	NodeSelector string
}

func (*CmdNodeScheduleList) Run

func (t *CmdNodeScheduleList) Run() error

type CmdNodeSet

type CmdNodeSet struct {
	OptsGlobal
	commoncmd.OptsLock
	KeywordOps   []string
	Local        bool
	NodeSelector string
}

func (*CmdNodeSet) Run

func (t *CmdNodeSet) Run() error

type CmdNodeStonith

type CmdNodeStonith struct {
	OptsGlobal
	Node string
}

func (*CmdNodeStonith) Run

func (t *CmdNodeStonith) Run() error

type CmdNodeSysreport

type CmdNodeSysreport struct {
	OptsGlobal
	Force                       bool
	Local                       bool
	NodeSelector                string
	IgnoreNoCollectorConfigured bool
}

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
	commoncmd.OptsLock
	Local        bool
	Keywords     []string
	Sections     []string
	NodeSelector string
}

func (*CmdNodeUnset) Run

func (t *CmdNodeUnset) Run() error

type CmdObjectAbort

type CmdObjectAbort struct {
	OptsGlobal
	commoncmd.OptsAsync
}

func (*CmdObjectAbort) Run

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

type CmdObjectCertificateCreate

type CmdObjectCertificateCreate struct {
	OptsGlobal
}

func (*CmdObjectCertificateCreate) Run

type CmdObjectCertificatePKCS

type CmdObjectCertificatePKCS struct {
	OptsGlobal
}

func (*CmdObjectCertificatePKCS) Run

func (t *CmdObjectCertificatePKCS) Run(kind string) error

type CmdObjectCertificateSigningRequest

type CmdObjectCertificateSigningRequest struct {
	OptsGlobal
}

func (*CmdObjectCertificateSigningRequest) Run

type CmdObjectCollectorTagAttach

type CmdObjectCollectorTagAttach struct {
	OptsGlobal
	Name       string
	AttachData *string
}

func (*CmdObjectCollectorTagAttach) Run

type CmdObjectCollectorTagCreate

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

func (*CmdObjectCollectorTagCreate) Run

type CmdObjectCollectorTagDetach

type CmdObjectCollectorTagDetach struct {
	OptsGlobal
	Name string
}

func (*CmdObjectCollectorTagDetach) Run

type CmdObjectCollectorTagList

type CmdObjectCollectorTagList struct {
	OptsGlobal
}

func (*CmdObjectCollectorTagList) Run

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

type CmdObjectCollectorTagShow

type CmdObjectCollectorTagShow struct {
	OptsGlobal
	Verbose bool
}

func (*CmdObjectCollectorTagShow) Run

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

type CmdObjectComplianceAttachModuleset

type CmdObjectComplianceAttachModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceAttachModuleset) Run

type CmdObjectComplianceAttachRuleset

type CmdObjectComplianceAttachRuleset struct {
	OptsGlobal
	Ruleset string
}

func (*CmdObjectComplianceAttachRuleset) Run

type CmdObjectComplianceAuto

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

func (*CmdObjectComplianceAuto) Run

func (t *CmdObjectComplianceAuto) Run(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(kind string) error

type CmdObjectComplianceDetachModuleset

type CmdObjectComplianceDetachModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceDetachModuleset) Run

type CmdObjectComplianceDetachRuleset

type CmdObjectComplianceDetachRuleset struct {
	OptsGlobal
	Ruleset string
}

func (*CmdObjectComplianceDetachRuleset) Run

type CmdObjectComplianceEnv

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

func (*CmdObjectComplianceEnv) Run

func (t *CmdObjectComplianceEnv) Run(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(kind string) error

type CmdObjectComplianceFixable

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

func (*CmdObjectComplianceFixable) Run

type CmdObjectComplianceListModules

type CmdObjectComplianceListModules struct {
	OptsGlobal
}

func (*CmdObjectComplianceListModules) Run

type CmdObjectComplianceListModuleset

type CmdObjectComplianceListModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceListModuleset) Run

type CmdObjectComplianceListRuleset

type CmdObjectComplianceListRuleset struct {
	OptsGlobal
	Ruleset string
}

func (*CmdObjectComplianceListRuleset) Run

type CmdObjectComplianceShowModuleset

type CmdObjectComplianceShowModuleset struct {
	OptsGlobal
	Moduleset string
}

func (*CmdObjectComplianceShowModuleset) Run

type CmdObjectComplianceShowRuleset

type CmdObjectComplianceShowRuleset struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdObjectComplianceShowRuleset) Run

type CmdObjectConfigDoc

type CmdObjectConfigDoc struct {
	OptsGlobal
	Color   string
	Output  string
	Keyword string
	Driver  string
	Depth   int
}

func (*CmdObjectConfigDoc) Run

func (t *CmdObjectConfigDoc) Run(kind string) error

type CmdObjectConfigEdit

type CmdObjectConfigEdit struct {
	OptsGlobal
	Discard bool
	Recover bool
}

func (*CmdObjectConfigEdit) Run

func (t *CmdObjectConfigEdit) Run(kind string) error

type CmdObjectConfigGet

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

func (*CmdObjectConfigGet) Run

func (t *CmdObjectConfigGet) Run(kind string) error

type CmdObjectConfigMtime

type CmdObjectConfigMtime struct {
	OptsGlobal
}

func (*CmdObjectConfigMtime) Run

func (t *CmdObjectConfigMtime) Run(kind string) error

type CmdObjectConfigShow

type CmdObjectConfigShow struct {
	ObjectSelector string
	RedactSecrets  bool
	Sections       []string
}

func (*CmdObjectConfigShow) Run

func (t *CmdObjectConfigShow) Run(kind string) error

type CmdObjectConfigUpdate

type CmdObjectConfigUpdate struct {
	OptsGlobal
	commoncmd.OptsLock
	Local  bool
	Delete []string
	Set    []string
	Unset  []string
}

func (*CmdObjectConfigUpdate) Run

func (t *CmdObjectConfigUpdate) Run(kind string) error

type CmdObjectConfigValidate

type CmdObjectConfigValidate struct {
	OptsGlobal
	commoncmd.OptsLock
}

func (*CmdObjectConfigValidate) Run

func (t *CmdObjectConfigValidate) Run(kind string) error

type CmdObjectContainerEnter

type CmdObjectContainerEnter struct {
	ObjectSelector string
	RID            string
}

func (*CmdObjectContainerEnter) Run

func (t *CmdObjectContainerEnter) Run(kind string) error

type CmdObjectContainerLogs

type CmdObjectContainerLogs struct {
	OptsGlobal
	RID    string
	Follow bool
	Lines  int
}

func (*CmdObjectContainerLogs) Run

func (t *CmdObjectContainerLogs) Run(kind string) error

type CmdObjectCreate

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

func (*CmdObjectCreate) Run

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

type CmdObjectDelete

type CmdObjectDelete struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	Local        bool
	NodeSelector string
}

func (*CmdObjectDelete) Run

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

type CmdObjectDisable

type CmdObjectDisable struct {
	OptsGlobal
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Local bool
}

func (*CmdObjectDisable) Run

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

type CmdObjectEnable

type CmdObjectEnable struct {
	OptsGlobal
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Local bool
}

func (*CmdObjectEnable) Run

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

type CmdObjectFreeze

type CmdObjectFreeze struct {
	OptsGlobal
	commoncmd.OptsAsync
	NodeSelector string
	Local        bool
}

func (*CmdObjectFreeze) Run

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

type CmdObjectGiveback

type CmdObjectGiveback struct {
	OptsGlobal
	commoncmd.OptsAsync
}

func (*CmdObjectGiveback) Run

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

type CmdObjectInstanceBoot

func (*CmdObjectInstanceBoot) Run

func (t *CmdObjectInstanceBoot) Run(kind string) error

type CmdObjectInstanceDelete

type CmdObjectInstanceDelete struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	NodeSelector string
}

func (*CmdObjectInstanceDelete) Run

func (t *CmdObjectInstanceDelete) Run(kind string) error

type CmdObjectInstanceDeviceList

type CmdObjectInstanceDeviceList struct {
	OptsGlobal
	NodeSelector string
	Roles        string
}

func (*CmdObjectInstanceDeviceList) Run

type CmdObjectInstanceFreeze

type CmdObjectInstanceFreeze struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	NodeSelector string
}

func (*CmdObjectInstanceFreeze) Run

func (t *CmdObjectInstanceFreeze) Run(kind string) error

type CmdObjectInstanceFull

type CmdObjectInstanceFull struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Force        bool
	Local        bool
	Target       []string
	NodeSelector string
}

func (*CmdObjectInstanceFull) Run

func (t *CmdObjectInstanceFull) Run(kind string) error

type CmdObjectInstanceIngest

type CmdObjectInstanceIngest struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Local        bool
	NodeSelector string
}

func (*CmdObjectInstanceIngest) Run

func (t *CmdObjectInstanceIngest) Run(kind string) error

type CmdObjectInstanceList

type CmdObjectInstanceList struct {
	OptsGlobal
	NodeSelector string
}

func (*CmdObjectInstanceList) Run

func (t *CmdObjectInstanceList) Run(kind string) error

type CmdObjectInstancePGReset

func (*CmdObjectInstancePGReset) Run

func (t *CmdObjectInstancePGReset) Run(kind string) error

type CmdObjectInstancePGUpdate

type CmdObjectInstancePGUpdate struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	NodeSelector string
}

func (*CmdObjectInstancePGUpdate) Run

func (t *CmdObjectInstancePGUpdate) Run(kind string) error

type CmdObjectInstancePRStart

type CmdObjectInstancePRStart struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Force           bool
	DisableRollback bool
	NodeSelector    string
	Local           bool
}

func (*CmdObjectInstancePRStart) Run

func (t *CmdObjectInstancePRStart) Run(kind string) error

type CmdObjectInstancePRStop

type CmdObjectInstancePRStop struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	NodeSelector string
	Force        bool
	Local        bool
}

func (*CmdObjectInstancePRStop) Run

func (t *CmdObjectInstancePRStop) Run(kind string) error

type CmdObjectInstanceProvision

type CmdObjectInstanceProvision struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Local           bool
	DisableRollback bool
	Force           bool
	Leader          bool
	NodeSelector    string

	// StateOnly indicates that the command will only change the instance-selected
	// resources provisioned state value to `provisioned` without any provisioning
	// actions.
	StateOnly bool
}

func (*CmdObjectInstanceProvision) Run

type CmdObjectInstanceResize

type CmdObjectInstanceResize struct {
	OptsGlobal
	Size          string
	DryRun        bool
	Stage         int
	SkipHeadStage bool
	Force         bool
}

func (*CmdObjectInstanceResize) Run

func (t *CmdObjectInstanceResize) Run(kind string) error

type CmdObjectInstanceResourceInfo

type CmdObjectInstanceResourceInfo struct {
	OptsGlobal
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	NodeSelector string

	// Refresh recomputes the resource info cache before reporting it.
	// Without it, the cached key-values are reported as-is.
	Refresh bool
}

func (*CmdObjectInstanceResourceInfo) Run

type CmdObjectInstanceRestart

type CmdObjectInstanceRestart struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	commoncmd.OptsEncap
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Local           bool
	NodeSelector    string
	Force           bool
	DisableRollback bool
}

func (*CmdObjectInstanceRestart) Run

func (t *CmdObjectInstanceRestart) Run(kind string) error

type CmdObjectInstanceResync

type CmdObjectInstanceResync struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Local        bool
	Force        bool
	NodeSelector string
}

func (*CmdObjectInstanceResync) Run

func (t *CmdObjectInstanceResync) Run(kind string) error

type CmdObjectInstanceRun

type CmdObjectInstanceRun struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Env          []string
	NodeSelector string
	Local        bool
	Cron         bool
	Confirm      bool
	Force        bool
}

func (*CmdObjectInstanceRun) Run

func (t *CmdObjectInstanceRun) Run(kind string) error

type CmdObjectInstanceShutdown

type CmdObjectInstanceShutdown struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Force        bool
	Local        bool
	NodeSelector string
}

func (*CmdObjectInstanceShutdown) Run

func (t *CmdObjectInstanceShutdown) Run(kind string) error

type CmdObjectInstanceSplit

type CmdObjectInstanceSplit struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Local        bool
	Force        bool
	NodeSelector string
}

func (*CmdObjectInstanceSplit) Run

func (t *CmdObjectInstanceSplit) Run(kind string) error

type CmdObjectInstanceStart

type CmdObjectInstanceStart struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Force           bool
	DisableRollback bool
	NodeSelector    string
}

func (*CmdObjectInstanceStart) Run

func (t *CmdObjectInstanceStart) Run(kind string) error

type CmdObjectInstanceStartStandby

type CmdObjectInstanceStartStandby struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	DisableRollback bool
	Force           bool
	Local           bool
	NodeSelector    string
}

func (*CmdObjectInstanceStartStandby) Run

type CmdObjectInstanceStatus

type CmdObjectInstanceStatus struct {
	OptsGlobal
	commoncmd.OptsLock
	NodeSelector string
	Refresh      bool
	Local        bool
	Monitor      bool
}

func (*CmdObjectInstanceStatus) Run

func (t *CmdObjectInstanceStatus) Run(kind string) error

type CmdObjectInstanceStop

func (*CmdObjectInstanceStop) Run

func (t *CmdObjectInstanceStop) Run(kind string) error

type CmdObjectInstanceUnfreeze

type CmdObjectInstanceUnfreeze struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	NodeSelector string
}

func (*CmdObjectInstanceUnfreeze) Run

func (t *CmdObjectInstanceUnfreeze) Run(kind string) error

type CmdObjectInstanceUnprovision

type CmdObjectInstanceUnprovision struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Local        bool
	Force        bool
	Leader       bool
	NodeSelector string

	// StateOnly indicates that the command will only change the instance-selected
	// resources provisioned state value to `unprovisioned` without any unprovisioning
	// actions.
	StateOnly bool
}

func (*CmdObjectInstanceUnprovision) Run

type CmdObjectInstanceUpdate

type CmdObjectInstanceUpdate struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Force        bool
	Local        bool
	Target       []string
	NodeSelector string
}

func (*CmdObjectInstanceUpdate) Run

func (t *CmdObjectInstanceUpdate) Run(kind string) error

type CmdObjectKeyAdd

type CmdObjectKeyAdd struct {
	OptsGlobal
	commoncmd.OptsLock
	Name  string
	From  *string
	Value *string
}

func (*CmdObjectKeyAdd) Run

func (t *CmdObjectKeyAdd) Run(kind string) error

type CmdObjectKeyChange

type CmdObjectKeyChange struct {
	OptsGlobal
	Name  string
	From  *string
	Value *string
}

func (*CmdObjectKeyChange) Run

func (t *CmdObjectKeyChange) Run(kind string) error

type CmdObjectKeyDecode

type CmdObjectKeyDecode struct {
	OptsGlobal
	Name string
}

func (*CmdObjectKeyDecode) Run

func (t *CmdObjectKeyDecode) Run(kind string) error

type CmdObjectKeyEdit

type CmdObjectKeyEdit struct {
	OptsGlobal
	Name string
}

func (*CmdObjectKeyEdit) Run

func (t *CmdObjectKeyEdit) Run(kind string) error

type CmdObjectKeyInstall

type CmdObjectKeyInstall struct {
	OptsGlobal
	NodeSelector string
	Name         string
}

func (*CmdObjectKeyInstall) Run

func (t *CmdObjectKeyInstall) Run(kind string) error

type CmdObjectKeyList

type CmdObjectKeyList struct {
	OptsGlobal
	Match string
}

func (*CmdObjectKeyList) Run

func (t *CmdObjectKeyList) Run(kind string) error

type CmdObjectKeyRemove

type CmdObjectKeyRemove struct {
	OptsGlobal
	Names []string
}

func (*CmdObjectKeyRemove) Run

func (t *CmdObjectKeyRemove) Run(kind string) error

type CmdObjectKeyRename

type CmdObjectKeyRename struct {
	OptsGlobal
	Name string
	To   string
}

func (*CmdObjectKeyRename) Run

func (t *CmdObjectKeyRename) Run(kind string) error

type CmdObjectList

type CmdObjectList struct {
	OptsGlobal
}

func (*CmdObjectList) Run

func (t *CmdObjectList) Run(kind string) error

type CmdObjectLogs

type CmdObjectLogs struct {
	OptsGlobal
	Local bool
	commoncmd.OptsLogs
	NodeSelector string
}

func (*CmdObjectLogs) Run

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

type CmdObjectProvision

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

func (*CmdObjectProvision) Run

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

type CmdObjectPurge

func (*CmdObjectPurge) Run

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

type CmdObjectResize

type CmdObjectResize struct {
	OptsGlobal
	commoncmd.OptsAsync
	Size string
}

func (*CmdObjectResize) Run

func (t *CmdObjectResize) Run(kind string) error

Run asks the daemons to grow the object.

The size is handed over as the user wrote it. Resolving it against the size already configured, checking the namespace has room for it in the pool, and writing it where every node reads it are the daemon's, on the node holding the object: this command has no say in whether the grow is allowed, and a client reaching the api directly must not either.

type CmdObjectResourceList

type CmdObjectResourceList struct {
	OptsGlobal
	commoncmd.OptsResourceSelector
	NodeSelector string
}

func (*CmdObjectResourceList) Run

func (t *CmdObjectResourceList) Run(kind string) error

type CmdObjectResourceResize

type CmdObjectResourceResize struct {
	OptsGlobal
	RID    string
	Size   string
	DryRun bool
	Force  bool
}

func (*CmdObjectResourceResize) Run

func (t *CmdObjectResourceResize) Run(kind string) error

type CmdObjectRestart

type CmdObjectRestart struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Local           bool
	NodeSelector    string
	Force           bool
	DisableRollback bool
}

func (*CmdObjectRestart) Run

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

type CmdObjectRun

type CmdObjectRun struct {
	OptsGlobal
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	Env          []string
	NodeSelector string
	Cron         bool
	Confirm      bool
}

func (*CmdObjectRun) Run

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

type CmdObjectScheduleList

type CmdObjectScheduleList struct {
	OptsGlobal
	Local        bool
	NodeSelector string
}

func (*CmdObjectScheduleList) Run

func (t *CmdObjectScheduleList) Run(kind string) error

type CmdObjectSet

type CmdObjectSet struct {
	OptsGlobal
	commoncmd.OptsLock
	Local      bool
	KeywordOps []string
}

func (*CmdObjectSet) Run

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

type CmdObjectStart

type CmdObjectStart struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Force           bool
	DisableRollback bool
	NodeSelector    string
	Local           bool
}

func (*CmdObjectStart) Run

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

type CmdObjectStatus

type CmdObjectStatus struct {
	commoncmd.OptsLock
	ObjectSelector string
	Refresh        bool
	Monitor        bool
}

func (*CmdObjectStatus) Run

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

type CmdObjectStop

func (*CmdObjectStop) Run

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

type CmdObjectSwitch

type CmdObjectSwitch struct {
	OptsGlobal
	commoncmd.OptsAsync
	To   string
	Live bool
}

func (*CmdObjectSwitch) Run

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

type CmdObjectTakeover

type CmdObjectTakeover struct {
	OptsGlobal
	commoncmd.OptsAsync
	Live bool
}

func (*CmdObjectTakeover) Run

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

type CmdObjectUnfreeze

type CmdObjectUnfreeze struct {
	OptsGlobal
	commoncmd.OptsAsync
	NodeSelector string
	Local        bool
}

func (*CmdObjectUnfreeze) Run

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

type CmdObjectUnprovision

type CmdObjectUnprovision struct {
	OptsGlobal
	commoncmd.OptsAsync
	commoncmd.OptsEncap
	commoncmd.OptsLock
	commoncmd.OptsResourceSelector
	commoncmd.OptTo
	Local        bool
	Force        bool
	Leader       bool
	NodeSelector string
}

func (*CmdObjectUnprovision) Run

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

type CmdObjectUnset

type CmdObjectUnset struct {
	OptsGlobal
	commoncmd.OptsLock
	Local    bool
	Keywords []string
	Sections []string
}

func (*CmdObjectUnset) Run

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

type CmdPoolVolumeList

type CmdPoolVolumeList struct {
	OptsGlobal
	Name string
}

func (*CmdPoolVolumeList) Run

func (t *CmdPoolVolumeList) Run() error

type OptsGlobal

type OptsGlobal struct {
	commoncmd.OptsGlobal
}

OptsGlobal contains options accepted by all actions

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