Documentation ¶
Overview ¶
Package control handles the details of control calls to the O² Control core.
Index ¶
- Constants
- func AddRepo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func CleanTasks(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func ControlEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func CreateEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func DestroyEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func GetEnvironments(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func GetInfo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func GetTasks(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func ListRepos(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func ListWorkflowTemplates(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func ModifyEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func QueryRoles(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func RefreshRepos(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func RemoveRepo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func SetDefaultRepo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) error
- func SetDefaultRevision(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) error
- func ShowEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- func Teardown(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, ...) (err error)
- type ControlCall
- type RunFunc
Constants ¶
const ( CALL_TIMEOUT = 55 * time.Second SPINNER_TICK = 100 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
func AddRepo ¶ added in v0.10.0
func AddRepo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) (err error)
AddRepo add a new repository to the available git repositories used for configuration and checks it out.
func CleanTasks ¶ added in v0.9.0
func ControlEnvironment ¶
func CreateEnvironment ¶
func DestroyEnvironment ¶
func GetEnvironments ¶
func ListRepos ¶ added in v0.10.0
func ListRepos(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) (err error)
ListRepos lists all available git repositories that are used for configuration.
func ListWorkflowTemplates ¶
func ListWorkflowTemplates(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) (err error)
ListWorkflowTemplates lists the available workflow templates and the git repo on which they reside.
func ModifyEnvironment ¶
func QueryRoles ¶
func RefreshRepos ¶ added in v0.10.0
func RefreshRepos(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) (err error)
RefreshRepos runs the equivalent of git pull origin/master for all available repositories.
func RemoveRepo ¶ added in v0.10.0
func RemoveRepo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) (err error)
RemoveRepo removes a git repository based on the indexes reported by ListRepos. If the default repository is removed, the repository with the lowest index is set as the new default. If all repositories are removed, the backend (consul or file) record of the default repository is updated to the relevant viper entry.
func SetDefaultRepo ¶ added in v0.10.0
func SetDefaultRepo(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) error
SetDefaultRepo selects the default repository based on the indexes reported by ListRepos. It also updates the backend (consul or file) which holds a record for the default repository which is persistent across core executions.
func SetDefaultRevision ¶ added in v0.12.90
func SetDefaultRevision(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Command, args []string, o io.Writer) error
SetDefaultRevision selects the default repository revision. This can be done on the global or on the repository level.