cli

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 30 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SourceKind = "source"
)

Variables

This section is empty.

Functions

func GenerateAgentToken added in v0.5.0

func GenerateAgentToken(sourceID, kid string, privateKey *rsa.PrivateKey) (string, error)

func GenerateToken

func GenerateToken(username, organization, firstName, lastName string, ttlHours int, privateKey *rsa.PrivateKey) (string, error)

func NewCmdCreate

func NewCmdCreate() *cobra.Command

func NewCmdCreateAssessment added in v0.3.0

func NewCmdCreateAssessment() *cobra.Command

func NewCmdCreateSource added in v0.3.0

func NewCmdCreateSource() *cobra.Command

func NewCmdDelete

func NewCmdDelete() *cobra.Command

func NewCmdDeploy

func NewCmdDeploy() *cobra.Command

func NewCmdGenerate

func NewCmdGenerate() *cobra.Command

func NewCmdGet

func NewCmdGet() *cobra.Command

func NewCmdInfo

func NewCmdInfo() *cobra.Command

func NewCmdRelease added in v0.13.3

func NewCmdRelease() *cobra.Command

func NewCmdSSO

func NewCmdSSO() *cobra.Command

func ParsePrivateKey

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

Types

type CreateAssessmentOptions added in v0.3.0

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

func DefaultCreateAssessmentOptions added in v0.3.0

func DefaultCreateAssessmentOptions() *CreateAssessmentOptions

func (*CreateAssessmentOptions) Bind added in v0.3.0

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

func (*CreateAssessmentOptions) Run added in v0.3.0

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

type CreateSourceOptions added in v0.3.0

type CreateSourceOptions struct {
	GlobalOptions

	SshKeyFile string
}

func DefaultCreateSourceOptions added in v0.3.0

func DefaultCreateSourceOptions() *CreateSourceOptions

func (*CreateSourceOptions) Bind added in v0.3.0

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

func (*CreateSourceOptions) Run added in v0.3.0

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

Jump to

Keyboard shortcuts

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