Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterConfigCommandContext ¶
type ClusterConfigCommandContext struct { CommandContext Files assets.FS ClusterConfig configuration.ClusterConfig ClusterConfigName string }
ClusterConfigCommandContext the context of the admin command to run
func NewClusterConfigCommandContext ¶
func NewClusterConfigCommandContext(term ioutils.Terminal, cfg configuration.ClusterConfig, newClient NewClientFunc, files assets.FS, clusterConfigName string) *ClusterConfigCommandContext
NewClusterConfigCommandContext returns the context of the admin command to run
func (*ClusterConfigCommandContext) GetFileContent ¶
func (ctx *ClusterConfigCommandContext) GetFileContent(path ...string) ([]byte, error)
type CommandContext ¶
type CommandContext struct { context.Context ioutils.Terminal NewClient NewClientFunc }
CommandContext the context of the (standard) command to run
func NewCommandContext ¶
func NewCommandContext(term ioutils.Terminal, newClient NewClientFunc) *CommandContext
NewCommandContext returns the context of the command to run
type NewClientFunc ¶
type NewClientFunc func(string, string) (runtimeclient.Client, error)
NewClientFunc a function to create a `client.Client` with the given token and API endpoint
Click to show internal directories.
Click to hide internal directories.