cli

package
v0.0.0-...-83f2b1d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceKind = "source"
)

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(username, organization string, privateKey *rsa.PrivateKey) (string, error)

func NewCmdCreate

func NewCmdCreate() *cobra.Command

func NewCmdDelete

func NewCmdDelete() *cobra.Command

func NewCmdDeploy

func NewCmdDeploy() *cobra.Command

func NewCmdE2E

func NewCmdE2E() *cobra.Command

func NewCmdE2EDestroy

func NewCmdE2EDestroy() *cobra.Command

func NewCmdGenerate

func NewCmdGenerate() *cobra.Command

func NewCmdGet

func NewCmdGet() *cobra.Command

func NewCmdInfo

func NewCmdInfo() *cobra.Command

func NewCmdSSO

func NewCmdSSO() *cobra.Command

func NewCmdUpload

func NewCmdUpload() *cobra.Command

func ParsePrivateKey

func ParsePrivateKey(content string) (*rsa.PrivateKey, error)

Types

type CreateOptions

type CreateOptions struct {
	GlobalOptions

	SshKeyFile string
}

func DefaultCreateOptions

func DefaultCreateOptions() *CreateOptions

func (*CreateOptions) Bind

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

func (*CreateOptions) Run

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

type DeleteOptions

type DeleteOptions struct {
	GlobalOptions
}

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 DeployOptions

type DeployOptions struct {
	GlobalOptions

	ImageFile   string
	Name        string
	NetworkName string
	QemuUrl     string
	StoragePool string
}

func DefaultDeployOptions

func DefaultDeployOptions() *DeployOptions

func (*DeployOptions) Bind

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

func (*DeployOptions) Run

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

func (*DeployOptions) Validate

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

type E2ETestOptions

type E2ETestOptions struct {
	// contains filtered or unexported fields
}

func DefaultE2EOptions

func DefaultE2EOptions() *E2ETestOptions

func (*E2ETestOptions) Bind

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

func (*E2ETestOptions) Run

func (o *E2ETestOptions) Run(ctx context.Context) error

type GenerateOptions

type GenerateOptions struct {
	GlobalOptions
	RHCOSImage          string
	ImageType           string
	AgentImageURL       string
	ServiceIP           string
	OutputImageFilePath string
	HttpProxyUrl        string
	HttpsProxyUrl       string
	NoProxyDomain       string
}

func DefaultGenerateOptions

func DefaultGenerateOptions() *GenerateOptions

func (*GenerateOptions) Bind

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

func (*GenerateOptions) Complete

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

func (*GenerateOptions) Run

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

func (*GenerateOptions) Validate

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

type GetOptions

type GetOptions struct {
	GlobalOptions

	Output string
}

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 {
	ServerUrl string
	Token     string
	ProxyUrl  string
}

func DefaultGlobalOptions

func DefaultGlobalOptions() GlobalOptions

func (*GlobalOptions) Bind

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

func (*GlobalOptions) Client

func (*GlobalOptions) Complete

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

func (*GlobalOptions) Validate

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

func (*GlobalOptions) WithProxy

func (o *GlobalOptions) WithProxy(httpClient *http.Client) error

type InfoOptions

type InfoOptions struct {
	GlobalOptions
	Output string
	Remote bool
}

func DefaultInfoOptions

func DefaultInfoOptions() *InfoOptions

func (*InfoOptions) Bind

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

func (*InfoOptions) Complete

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

func (*InfoOptions) Run

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

func (*InfoOptions) Validate

func (o *InfoOptions) Validate() error

type InfoResponse

type InfoResponse struct {
	GitCommit   string `json:"gitCommit" yaml:"gitCommit"`
	VersionName string `json:"versionName" yaml:"versionName"`
}

InfoResponse represents the information we want to display

type UploadOptions

type UploadOptions struct {
	GlobalOptions
	// contains filtered or unexported fields
}

func DefaultUploadOptions

func DefaultUploadOptions() *UploadOptions

func (*UploadOptions) Bind

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

func (*UploadOptions) Run

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

Jump to

Keyboard shortcuts

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