package
3.0.0-alpha9+incompatible
Repository: https://github.com/opensvc/om3.git
Documentation: pkg.go.dev
# Functions
LocalFirst makes actions not explicitely Local nor remoted via NodeSelector be treated as local (CRM level).
New allocates a new client configuration and returns the reference so users are not tempted to use client.Config{} dereferenced, which would make loadContext useless.
WithAsyncTarget is the node or object state the daemons should orchestrate to reach.
WithAsyncTargetOptions is the options of the target defined by WithAsyncTarget.
WithAsyncTime is the maximum duration to wait for an async action It needs WithAsyncWait(true).
WithAsyncWait runs an event-watcher waiting for target state, global expect return to none.
WithAsyncWatch runs a event-driven monitor on the selected objects after setting a new target.
WithColor activates the colorization of outputs auto => yes if os.Stdout is a tty yes no.
WithFormat controls the output data format.
WithLocal routes the action to the CRM instead of remoting it via orchestration or remote execution.
WithLocalRun sets a function to run if the action is local.
WithObjectSelector expands into a selection of objects to execute the action on.
WithProgress decides if the action progress renderer is used.
WithRemoteAction is the name of the action as passed to the command line interface.
WithRemoteNodes expands into a selection of nodes to execute the action on.
WithRemoteOptions is the dataset submited in the POST /{object|node}_action api handler to execute the action remotely.
WithRID expands into a selection of resources to execute the action on.
WithServer sets the api url.
WithSubset expands into a selection of resources to execute the action on.
WithTag expands into a selection of resources to execute the action on.