Documentation
¶
Index ¶
- Constants
- func GenerateToken(username, organization string, privateKey *rsa.PrivateKey) (string, error)
- func NewCmdCreate() *cobra.Command
- func NewCmdDelete() *cobra.Command
- func NewCmdDeploy() *cobra.Command
- func NewCmdE2E() *cobra.Command
- func NewCmdE2EDestroy() *cobra.Command
- func NewCmdGenerate() *cobra.Command
- func NewCmdGet() *cobra.Command
- func NewCmdInfo() *cobra.Command
- func NewCmdSSO() *cobra.Command
- func NewCmdUpload() *cobra.Command
- func ParsePrivateKey(content string) (*rsa.PrivateKey, error)
- type CreateOptions
- type DeleteOptions
- type DeployOptions
- type E2ETestOptions
- type GenerateOptions
- type GetOptions
- type GlobalOptions
- func (o *GlobalOptions) Bind(fs *pflag.FlagSet)
- func (o *GlobalOptions) Client() (*client.ClientWithResponses, error)
- func (o *GlobalOptions) Complete(cmd *cobra.Command, args []string) error
- func (o *GlobalOptions) Validate(args []string) error
- func (o *GlobalOptions) WithProxy(httpClient *http.Client) error
- type InfoOptions
- type InfoResponse
- type UploadOptions
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 NewCmdDelete ¶
func NewCmdDeploy ¶
func NewCmdE2EDestroy ¶
func NewCmdGenerate ¶
func NewCmdInfo ¶
func NewCmdUpload ¶
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)
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) 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) 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)
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) 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) Client ¶
func (o *GlobalOptions) Client() (*client.ClientWithResponses, error)
func (*GlobalOptions) Complete ¶
func (o *GlobalOptions) Complete(cmd *cobra.Command, args []string) error
func (*GlobalOptions) Validate ¶
func (o *GlobalOptions) Validate(args []string) 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) 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)
Click to show internal directories.
Click to hide internal directories.