Documentation
¶
Overview ¶
Package profiles implements the `profile profiles` command group for managing configuration profiles.
Index ¶
- func NewCmdActivate(inv *cmd.Invocation) *cmd.Command
- func NewCmdCreate(inv *cmd.Invocation) *cmd.Command
- func NewCmdDelete(inv *cmd.Invocation) *cmd.Command
- func NewCmdList(inv *cmd.Invocation) *cmd.Command
- func NewCmdProfiles(inv *cmd.Invocation) *cmd.Command
- func NewCmdRename(inv *cmd.Invocation) *cmd.Command
- func PredictProfiles(repeated, predictActive bool) complete.PredictFunc
- type ActivateOpts
- type CreateOpts
- type DeleteOpts
- type ListOpts
- type RenameOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdActivate ¶
func NewCmdActivate(inv *cmd.Invocation) *cmd.Command
NewCmdActivate returns the `profile profiles activate` command for activating a configuration profile.
func NewCmdCreate ¶
func NewCmdCreate(inv *cmd.Invocation) *cmd.Command
NewCmdCreate returns the `profile profiles create` command for creating a new configuration profile.
func NewCmdDelete ¶
func NewCmdDelete(inv *cmd.Invocation) *cmd.Command
NewCmdDelete returns the `profile profiles delete` command for deleting configuration profiles.
func NewCmdList ¶
func NewCmdList(inv *cmd.Invocation) *cmd.Command
NewCmdList returns the `profile profiles list` command for listing configuration profiles.
func NewCmdProfiles ¶
func NewCmdProfiles(inv *cmd.Invocation) *cmd.Command
NewCmdProfiles returns the `profile profiles` command for managing configuration profiles.
func NewCmdRename ¶
func NewCmdRename(inv *cmd.Invocation) *cmd.Command
NewCmdRename returns the `profile profiles rename` command for renaming a configuration profile.
func PredictProfiles ¶
func PredictProfiles(repeated, predictActive bool) complete.PredictFunc
PredictProfiles is an argument prediction function that predicts a profile name. If repeated is true, multiple profiles will be predicted. This is useful for commands that accept lists of profiles. If predictActive is set to true, the active profile will be included in the prediction set.
Types ¶
type ActivateOpts ¶
type ActivateOpts struct {
IO iostreams.IOStreams
Profiles *profile.Loader
Name string
DryRun bool
}
ActivateOpts defines the options for the `profile profiles activate` command.
type CreateOpts ¶
type CreateOpts struct {
IO iostreams.IOStreams
Profiles *profile.Loader
Name string
NoActivate bool
Hostname string
DryRun bool
}
CreateOpts defines the options for the `profile profiles create` command.
type DeleteOpts ¶
type DeleteOpts struct {
IO iostreams.IOStreams
Profiles *profile.Loader
Names []string
DryRun bool
}
DeleteOpts defines the options for the `profile profiles delete` command.