Documentation
¶
Overview ¶
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Index ¶
- func AddDownloadCmd(rootCmd *cobra.Command, opts GlobalOptions)
- func AddDownloadPackageCmd(download *cobra.Command, opts GlobalOptions)
- func AddInstallCephCmd(install *cobra.Command)
- func AddInstallCmd(rootCmd *cobra.Command)
- func AddInstallCodesphereCmd(install *cobra.Command)
- func AddListCmd(rootCmd *cobra.Command, opts GlobalOptions)
- func AddListPackagesCmd(list *cobra.Command, opts GlobalOptions)
- func AddRegisterCmd(list *cobra.Command, opts GlobalOptions)
- func AddRevokeAPIKeyCmd(list *cobra.Command, opts GlobalOptions)
- func AddRevokeCmd(rootCmd *cobra.Command, opts GlobalOptions)
- func AddUpdateCmd(rootCmd *cobra.Command)
- func AddUpgradeCephCmd(upgrade *cobra.Command)
- func AddUpgradeCmd(rootCmd *cobra.Command)
- func AddUpgradeCodesphereCmd(upgrade *cobra.Command)
- func AddVersionCmd(rootCmd *cobra.Command)
- func Execute()
- func GetRootCmd() *cobra.Command
- type DownloadCmd
- type DownloadPackageCmd
- type DownloadPackageOpts
- type GlobalOptions
- type InstallCephCmd
- type InstallCmd
- type InstallCodesphereCmd
- type ListBuildsCmd
- type ListBuildsOpts
- type ListCmd
- type MockUpdater
- type MockUpdater_Apply_Call
- type MockUpdater_Expecter
- type RegisterCmd
- type RegisterOpts
- type RevokeAPIKeyCmd
- type RevokeAPIKeyOpts
- type RevokeCmd
- type SelfUpdater
- type UpdateCmd
- type Updater
- type UpgradeCephCmd
- type UpgradeCmd
- type UpgradeCodesphereCmd
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDownloadCmd ¶
func AddDownloadCmd(rootCmd *cobra.Command, opts GlobalOptions)
func AddDownloadPackageCmd ¶
func AddDownloadPackageCmd(download *cobra.Command, opts GlobalOptions)
func AddInstallCephCmd ¶
func AddInstallCmd ¶
func AddInstallCodesphereCmd ¶
func AddListCmd ¶
func AddListCmd(rootCmd *cobra.Command, opts GlobalOptions)
func AddListPackagesCmd ¶
func AddListPackagesCmd(list *cobra.Command, opts GlobalOptions)
func AddRegisterCmd ¶
func AddRegisterCmd(list *cobra.Command, opts GlobalOptions)
func AddRevokeAPIKeyCmd ¶ added in v0.9.0
func AddRevokeAPIKeyCmd(list *cobra.Command, opts GlobalOptions)
func AddRevokeCmd ¶
func AddRevokeCmd(rootCmd *cobra.Command, opts GlobalOptions)
func AddUpdateCmd ¶
func AddUpgradeCephCmd ¶
func AddUpgradeCmd ¶
func AddUpgradeCodesphereCmd ¶
func AddVersionCmd ¶
func Execute ¶
func Execute()
Execute executes the root command. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetRootCmd ¶
GetRootCmd adds all child commands to the root command and sets flags appropriately.
Types ¶
type DownloadCmd ¶
type DownloadCmd struct {
// contains filtered or unexported fields
}
DownloadCmd represents the download command
type DownloadPackageCmd ¶
type DownloadPackageCmd struct {
Opts DownloadPackageOpts
FileWriter util.FileWriter
// contains filtered or unexported fields
}
DownloadPackageCmd represents the package command
func (*DownloadPackageCmd) DownloadBuild ¶
type DownloadPackageOpts ¶
type DownloadPackageOpts struct {
GlobalOptions
Version string
Hash string
Filename string
}
type GlobalOptions ¶
type GlobalOptions struct {
OmsPortalApiKey string
}
type InstallCephCmd ¶
type InstallCephCmd struct {
// contains filtered or unexported fields
}
InstallCephCmd represents the ceph command
type InstallCmd ¶
type InstallCmd struct {
// contains filtered or unexported fields
}
InstallCmd represents the install command
type InstallCodesphereCmd ¶
type InstallCodesphereCmd struct {
// contains filtered or unexported fields
}
InstallCodesphereCmd represents the codesphere command
type ListBuildsCmd ¶
type ListBuildsCmd struct {
Opts ListBuildsOpts
TableWriter util.TableWriter
// contains filtered or unexported fields
}
func (*ListBuildsCmd) PrintPackagesTable ¶
func (c *ListBuildsCmd) PrintPackagesTable(packages portal.Builds)
type ListBuildsOpts ¶
type ListBuildsOpts struct {
GlobalOptions
Internal bool
}
type MockUpdater ¶
MockUpdater is an autogenerated mock type for the Updater type
func NewMockUpdater ¶
func NewMockUpdater(t interface {
mock.TestingT
Cleanup(func())
}) *MockUpdater
NewMockUpdater creates a new instance of MockUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockUpdater) Apply ¶
func (_mock *MockUpdater) Apply(update io.Reader) error
Apply provides a mock function for the type MockUpdater
func (*MockUpdater) EXPECT ¶
func (_m *MockUpdater) EXPECT() *MockUpdater_Expecter
type MockUpdater_Apply_Call ¶
MockUpdater_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockUpdater_Apply_Call) Return ¶
func (_c *MockUpdater_Apply_Call) Return(err error) *MockUpdater_Apply_Call
func (*MockUpdater_Apply_Call) Run ¶
func (_c *MockUpdater_Apply_Call) Run(run func(update io.Reader)) *MockUpdater_Apply_Call
func (*MockUpdater_Apply_Call) RunAndReturn ¶
func (_c *MockUpdater_Apply_Call) RunAndReturn(run func(update io.Reader) error) *MockUpdater_Apply_Call
type MockUpdater_Expecter ¶
type MockUpdater_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdater_Expecter) Apply ¶
func (_e *MockUpdater_Expecter) Apply(update interface{}) *MockUpdater_Apply_Call
Apply is a helper method to define mock.On call
- update
type RegisterCmd ¶
type RegisterCmd struct {
Opts RegisterOpts
// contains filtered or unexported fields
}
type RegisterOpts ¶
type RegisterOpts struct {
GlobalOptions
Owner string
Organization string
Role string
ExpiresAt string
}
type RevokeAPIKeyCmd ¶ added in v0.9.0
type RevokeAPIKeyCmd struct {
Opts RevokeAPIKeyOpts
// contains filtered or unexported fields
}
type RevokeAPIKeyOpts ¶ added in v0.9.0
type RevokeAPIKeyOpts struct {
GlobalOptions
ID string
}
type SelfUpdater ¶
type SelfUpdater struct{}
type UpdateCmd ¶
type UpgradeCephCmd ¶
type UpgradeCephCmd struct {
// contains filtered or unexported fields
}
UpgradeCephCmd represents the ceph command
type UpgradeCmd ¶
type UpgradeCmd struct {
// contains filtered or unexported fields
}
UpgradeCmd represents the upgrade command
type UpgradeCodesphereCmd ¶
type UpgradeCodesphereCmd struct {
// contains filtered or unexported fields
}
UpgradeCodesphereCmd represents the codesphere command
type VersionCmd ¶
type VersionCmd struct {
// contains filtered or unexported fields
}