Documentation
¶
Index ¶
- Constants
- func ConfigDir() string
- func ConfigFilePath(context string) string
- func NewCmdApply() *cobra.Command
- func NewCmdApprove() *cobra.Command
- func NewCmdCSRConfig() *cobra.Command
- func NewCmdCompletion() *cobra.Command
- func NewCmdDelete() *cobra.Command
- func NewCmdDeny() *cobra.Command
- func NewCmdEnrollmentConfig() *cobra.Command
- func NewCmdGet() *cobra.Command
- func NewCmdLogin() *cobra.Command
- func NewCmdVersion() *cobra.Command
- func NewConsoleCmd() *cobra.Command
- type ApplyOptions
- type ApproveOptions
- type CSRConfigOptions
- type CompletionOptions
- type ConsoleOptions
- type DeleteOptions
- type DenyOptions
- type EnrollmentConfigOptions
- type GetOptions
- type GlobalOptions
- type LoginOptions
- type OauthServerResponse
- type VersionOptions
Constants ¶
View Source
const ( DeviceKind = "device" EnrollmentRequestKind = "enrollmentrequest" FleetKind = "fleet" RepositoryKind = "repository" ResourceSyncKind = "resourcesync" TemplateVersionKind = "templateversion" CertificateSigningRequestKind = "certificatesigningrequest" )
View Source
const (
NoneString = "<none>"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigFilePath ¶
func NewCmdApply ¶
func NewCmdApprove ¶
func NewCmdCSRConfig ¶ added in v0.2.0
func NewCmdCompletion ¶
func NewCmdDelete ¶
func NewCmdDeny ¶
func NewCmdEnrollmentConfig ¶ added in v0.2.0
func NewCmdLogin ¶
func NewCmdVersion ¶
func NewConsoleCmd ¶
Types ¶
type ApplyOptions ¶
type ApplyOptions struct { GlobalOptions Filenames []string DryRun bool Recursive bool }
func DefaultApplyOptions ¶
func DefaultApplyOptions() *ApplyOptions
func (*ApplyOptions) Bind ¶
func (o *ApplyOptions) Bind(fs *pflag.FlagSet)
func (*ApplyOptions) Complete ¶
func (o *ApplyOptions) Complete(cmd *cobra.Command, args []string) error
func (*ApplyOptions) Validate ¶
func (o *ApplyOptions) Validate(args []string) error
type ApproveOptions ¶
type ApproveOptions struct { GlobalOptions ApproveLabels []string }
func DefaultApproveOptions ¶
func DefaultApproveOptions() *ApproveOptions
func (*ApproveOptions) Bind ¶
func (o *ApproveOptions) Bind(fs *pflag.FlagSet)
func (*ApproveOptions) Complete ¶
func (o *ApproveOptions) Complete(cmd *cobra.Command, args []string) error
func (*ApproveOptions) Validate ¶
func (o *ApproveOptions) Validate(args []string) error
type CSRConfigOptions ¶ added in v0.2.0
type CSRConfigOptions struct { GlobalOptions CertSigningRequestFile string Output string Name string ExpirationSeconds string Overwrite bool }
func DefaultCSRConfigOptions ¶ added in v0.2.0
func DefaultCSRConfigOptions() *CSRConfigOptions
func (*CSRConfigOptions) Bind ¶ added in v0.2.0
func (o *CSRConfigOptions) Bind(fs *pflag.FlagSet)
func (*CSRConfigOptions) Complete ¶ added in v0.2.0
func (o *CSRConfigOptions) Complete(cmd *cobra.Command, args []string) error
func (*CSRConfigOptions) Run ¶ added in v0.2.0
func (o *CSRConfigOptions) Run(ctx context.Context, args []string) error
func (*CSRConfigOptions) Validate ¶ added in v0.2.0
func (o *CSRConfigOptions) Validate(args []string) error
type CompletionOptions ¶
type CompletionOptions struct { GlobalOptions Shell string }
func DefaultCompletionOptions ¶
func DefaultCompletionOptions() *CompletionOptions
func (*CompletionOptions) Complete ¶
func (o *CompletionOptions) Complete(cmd *cobra.Command, args []string) error
func (*CompletionOptions) Validate ¶
func (o *CompletionOptions) Validate(args []string) error
type ConsoleOptions ¶
type ConsoleOptions struct {
GlobalOptions
}
func DefaultConsoleOptions ¶
func DefaultConsoleOptions() *ConsoleOptions
func (*ConsoleOptions) Bind ¶
func (o *ConsoleOptions) Bind(fs *pflag.FlagSet)
func (*ConsoleOptions) Complete ¶
func (o *ConsoleOptions) Complete(cmd *cobra.Command, args []string) error
func (*ConsoleOptions) Validate ¶
func (o *ConsoleOptions) Validate(args []string) error
type DeleteOptions ¶
type DeleteOptions struct { GlobalOptions FleetName string }
func DefaultDeleteOptions ¶
func DefaultDeleteOptions() *DeleteOptions
func (*DeleteOptions) Bind ¶
func (o *DeleteOptions) Bind(fs *pflag.FlagSet)
func (*DeleteOptions) Complete ¶
func (o *DeleteOptions) Complete(cmd *cobra.Command, args []string) error
func (*DeleteOptions) Validate ¶
func (o *DeleteOptions) Validate(args []string) error
type DenyOptions ¶
type DenyOptions struct {
GlobalOptions
}
func DefaultDenyOptions ¶
func DefaultDenyOptions() *DenyOptions
func (*DenyOptions) Bind ¶
func (o *DenyOptions) Bind(fs *pflag.FlagSet)
func (*DenyOptions) Complete ¶
func (o *DenyOptions) Complete(cmd *cobra.Command, args []string) error
func (*DenyOptions) Validate ¶
func (o *DenyOptions) Validate(args []string) error
type EnrollmentConfigOptions ¶ added in v0.2.0
type EnrollmentConfigOptions struct { GlobalOptions PrivateKey string }
func DefaultEnrollmentConfigOptions ¶ added in v0.2.0
func DefaultEnrollmentConfigOptions() *EnrollmentConfigOptions
func (*EnrollmentConfigOptions) Bind ¶ added in v0.2.0
func (o *EnrollmentConfigOptions) Bind(fs *pflag.FlagSet)
func (*EnrollmentConfigOptions) Complete ¶ added in v0.2.0
func (o *EnrollmentConfigOptions) Complete(cmd *cobra.Command, args []string) error
func (*EnrollmentConfigOptions) Run ¶ added in v0.2.0
func (o *EnrollmentConfigOptions) Run(ctx context.Context, args []string) error
func (*EnrollmentConfigOptions) Validate ¶ added in v0.2.0
func (o *EnrollmentConfigOptions) Validate(args []string) error
type GetOptions ¶
type GetOptions struct { GlobalOptions Owner string LabelSelector string StatusFilter []string Output string Limit int32 Continue string FleetName string Rendered bool }
func DefaultGetOptions ¶
func DefaultGetOptions() *GetOptions
func (*GetOptions) Bind ¶
func (o *GetOptions) Bind(fs *pflag.FlagSet)
func (*GetOptions) Complete ¶
func (o *GetOptions) Complete(cmd *cobra.Command, args []string) error
func (*GetOptions) Validate ¶
func (o *GetOptions) Validate(args []string) error
type GlobalOptions ¶
func DefaultGlobalOptions ¶
func DefaultGlobalOptions() GlobalOptions
func (*GlobalOptions) Bind ¶
func (o *GlobalOptions) Bind(fs *pflag.FlagSet)
func (*GlobalOptions) Complete ¶
func (o *GlobalOptions) Complete(cmd *cobra.Command, args []string) error
func (*GlobalOptions) Validate ¶
func (o *GlobalOptions) Validate(args []string) error
type LoginOptions ¶
type LoginOptions struct { GlobalOptions Token string Web bool ClientId string InsecureSkipVerify bool CAFile string AuthInsecureSkipVerify bool AuthCAFile string }
func DefaultLoginOptions ¶
func DefaultLoginOptions() *LoginOptions
func (*LoginOptions) Bind ¶
func (o *LoginOptions) Bind(fs *pflag.FlagSet)
func (*LoginOptions) Complete ¶
func (o *LoginOptions) Complete(cmd *cobra.Command, args []string) error
func (*LoginOptions) Validate ¶
func (o *LoginOptions) Validate(args []string) error
type OauthServerResponse ¶
type VersionOptions ¶
type VersionOptions struct {
Output string
}
func DefaultVersionOptions ¶
func DefaultVersionOptions() *VersionOptions
Click to show internal directories.
Click to hide internal directories.