cli

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

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 ConfigDir

func ConfigDir() string

func ConfigFilePath

func ConfigFilePath(context string) string

func NewCmdApply

func NewCmdApply() *cobra.Command

func NewCmdApprove

func NewCmdApprove() *cobra.Command

func NewCmdCSRConfig added in v0.2.0

func NewCmdCSRConfig() *cobra.Command

func NewCmdCertificate added in v0.3.0

func NewCmdCertificate() *cobra.Command

func NewCmdCompletion

func NewCmdCompletion() *cobra.Command

func NewCmdDelete

func NewCmdDelete() *cobra.Command

func NewCmdDeny

func NewCmdDeny() *cobra.Command

func NewCmdEnrollmentConfig added in v0.2.0

func NewCmdEnrollmentConfig() *cobra.Command

func NewCmdGet

func NewCmdGet() *cobra.Command

func NewCmdLogin

func NewCmdLogin() *cobra.Command

func NewCmdVersion

func NewCmdVersion() *cobra.Command

func NewConsoleCmd

func NewConsoleCmd() *cobra.Command

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) Run

func (o *ApplyOptions) Run(ctx context.Context, 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) Run

func (o *ApproveOptions) Run(ctx context.Context, 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 CertificateOptions added in v0.3.0

type CertificateOptions struct {
	GlobalOptions
	Name         string
	Expiration   string
	OutputFormat string
	OutputDir    string
	EncryptKey   bool
	SignerName   string
}

func DefaultCertificateOptions added in v0.3.0

func DefaultCertificateOptions() *CertificateOptions

func (*CertificateOptions) Bind added in v0.3.0

func (o *CertificateOptions) Bind(fs *pflag.FlagSet)

func (*CertificateOptions) Complete added in v0.3.0

func (o *CertificateOptions) Complete(cmd *cobra.Command, args []string) error

func (*CertificateOptions) Run added in v0.3.0

func (o *CertificateOptions) Run(ctx context.Context, args []string) error

func (*CertificateOptions) Validate added in v0.3.0

func (o *CertificateOptions) 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) Run

func (o *ConsoleOptions) Run(ctx context.Context, 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) Run

func (o *DeleteOptions) Run(ctx context.Context, 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) Run

func (o *DenyOptions) Run(ctx context.Context, 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
	FieldSelector string
	StatusFilter  []string
	Output        string
	Limit         int32
	Continue      string
	FleetName     string
	Rendered      bool
	Summary       bool
	SummaryOnly   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) Run

func (o *GetOptions) Run(ctx context.Context, args []string) error

func (*GetOptions) Validate

func (o *GetOptions) Validate(args []string) error

type GlobalOptions

type GlobalOptions struct {
	ConfigFilePath string
	Context        string
}

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
	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) Run

func (o *LoginOptions) Run(ctx context.Context, args []string) error

func (*LoginOptions) Validate

func (o *LoginOptions) Validate(args []string) error

type OauthServerResponse

type OauthServerResponse struct {
	TokenEndpoint string `json:"token_endpoint"`
	AuthEndpoint  string `json:"authorization_endpoint"`
}

type VersionOptions

type VersionOptions struct {
	Output string
}

func DefaultVersionOptions

func DefaultVersionOptions() *VersionOptions

func (*VersionOptions) Bind added in v0.3.0

func (o *VersionOptions) Bind(fs *pflag.FlagSet)

func (*VersionOptions) Complete added in v0.3.0

func (o *VersionOptions) Complete(cmd *cobra.Command, args []string) error

func (*VersionOptions) Run

func (o *VersionOptions) Run(ctx context.Context, args []string) error

func (*VersionOptions) Validate added in v0.3.0

func (o *VersionOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL