Documentation
¶
Index ¶
- Constants
- func AddApiKeyUpdateCmd(parentCmd *cobra.Command)
- func AddBetaCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddDownloadCmd(rootCmd *cobra.Command, opts GlobalOptions)
- func AddDownloadPackageCmd(download *cobra.Command, opts GlobalOptions)
- func AddExtendBaseimageCmd(extend *cobra.Command, opts *GlobalOptions)
- func AddExtendCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddInstallCephCmd(install *cobra.Command)
- func AddInstallCmd(rootCmd *cobra.Command)
- func AddInstallCodesphereCmd(install *cobra.Command)
- func AddListAPIKeysCmd(list *cobra.Command, opts GlobalOptions)
- func AddListCmd(rootCmd *cobra.Command, opts GlobalOptions)
- func AddListPackagesCmd(list *cobra.Command, opts GlobalOptions)
- func AddOmsUpdateCmd(parentCmd *cobra.Command)
- 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, opts GlobalOptions)
- 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 BetaCmd
- type DownloadCmd
- type DownloadPackageCmd
- type DownloadPackageOpts
- type ExtendBaseimageCmd
- type ExtendBaseimageOpts
- type ExtendCmd
- type GlobalOptions
- type InstallCephCmd
- type InstallCmd
- type InstallCodesphereCmd
- type ListAPIKeysCmd
- type ListBuildsCmd
- type ListBuildsOpts
- type ListCmd
- type MockOMSUpdater
- type MockOMSUpdater_Expecter
- type MockOMSUpdater_Update_Call
- func (_c *MockOMSUpdater_Update_Call) Return(version semver.Version, s string, err error) *MockOMSUpdater_Update_Call
- func (_c *MockOMSUpdater_Update_Call) Run(run func(v semver.Version, repo string)) *MockOMSUpdater_Update_Call
- func (_c *MockOMSUpdater_Update_Call) RunAndReturn(run func(v semver.Version, repo string) (semver.Version, string, error)) *MockOMSUpdater_Update_Call
- type OMSSelfUpdater
- type OMSUpdater
- type RegisterCmd
- type RegisterOpts
- type RevokeAPIKeyCmd
- type RevokeAPIKeyOpts
- type RevokeCmd
- type UpdateAPIKeyCmd
- type UpdateAPIKeyOpts
- type UpdateCmd
- type UpdateOmsCmd
- type UpgradeCephCmd
- type UpgradeCmd
- type UpgradeCodesphereCmd
- type VersionCmd
Constants ¶
const GitHubRepo = "codesphere-cloud/oms"
Variables ¶
This section is empty.
Functions ¶
func AddApiKeyUpdateCmd ¶ added in v0.12.0
func AddBetaCmd ¶ added in v0.10.0
func AddBetaCmd(rootCmd *cobra.Command, opts *GlobalOptions)
func AddDownloadCmd ¶
func AddDownloadCmd(rootCmd *cobra.Command, opts GlobalOptions)
func AddDownloadPackageCmd ¶
func AddDownloadPackageCmd(download *cobra.Command, opts GlobalOptions)
func AddExtendBaseimageCmd ¶ added in v0.10.0
func AddExtendBaseimageCmd(extend *cobra.Command, opts *GlobalOptions)
func AddExtendCmd ¶ added in v0.10.0
func AddExtendCmd(rootCmd *cobra.Command, opts *GlobalOptions)
func AddInstallCephCmd ¶
func AddInstallCmd ¶
func AddInstallCodesphereCmd ¶
func AddListAPIKeysCmd ¶ added in v0.11.0
func AddListAPIKeysCmd(list *cobra.Command, opts GlobalOptions)
func AddListCmd ¶
func AddListCmd(rootCmd *cobra.Command, opts GlobalOptions)
func AddListPackagesCmd ¶
func AddListPackagesCmd(list *cobra.Command, opts GlobalOptions)
func AddOmsUpdateCmd ¶ added in v0.12.0
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 AddUpdateCmd(rootCmd *cobra.Command, opts GlobalOptions)
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.FileIO
// 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 ExtendBaseimageCmd ¶ added in v0.10.0
type ExtendBaseimageCmd struct {
Opts *ExtendBaseimageOpts
Env env.Env
// contains filtered or unexported fields
}
ExtendBaseimageCmd represents the baseimage command
func (*ExtendBaseimageCmd) ExtendBaseimage ¶ added in v0.10.0
func (c *ExtendBaseimageCmd) ExtendBaseimage(p *installer.Package, args []string) error
type ExtendBaseimageOpts ¶ added in v0.10.0
type ExtendBaseimageOpts struct {
*GlobalOptions
Package string
Dockerfile string
Force bool
}
type ExtendCmd ¶ added in v0.10.0
type ExtendCmd struct {
// contains filtered or unexported fields
}
ExtendCmd represents the extend command
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 ListAPIKeysCmd ¶ added in v0.11.0
type ListAPIKeysCmd struct {
TableWriter util.TableWriter
// contains filtered or unexported fields
}
func (*ListAPIKeysCmd) PrintKeysTable ¶ added in v0.11.0
func (c *ListAPIKeysCmd) PrintKeysTable(keys []portal.ApiKey)
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 MockOMSUpdater ¶ added in v0.12.0
MockOMSUpdater is an autogenerated mock type for the OMSUpdater type
func NewMockOMSUpdater ¶ added in v0.12.0
func NewMockOMSUpdater(t interface {
mock.TestingT
Cleanup(func())
}) *MockOMSUpdater
NewMockOMSUpdater creates a new instance of MockOMSUpdater. 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 (*MockOMSUpdater) EXPECT ¶ added in v0.12.0
func (_m *MockOMSUpdater) EXPECT() *MockOMSUpdater_Expecter
type MockOMSUpdater_Expecter ¶ added in v0.12.0
type MockOMSUpdater_Expecter struct {
// contains filtered or unexported fields
}
func (*MockOMSUpdater_Expecter) Update ¶ added in v0.13.0
func (_e *MockOMSUpdater_Expecter) Update(v interface{}, repo interface{}) *MockOMSUpdater_Update_Call
Update is a helper method to define mock.On call
- v
- repo
type MockOMSUpdater_Update_Call ¶ added in v0.13.0
MockOMSUpdater_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockOMSUpdater_Update_Call) Return ¶ added in v0.13.0
func (_c *MockOMSUpdater_Update_Call) Return(version semver.Version, s string, err error) *MockOMSUpdater_Update_Call
func (*MockOMSUpdater_Update_Call) Run ¶ added in v0.13.0
func (_c *MockOMSUpdater_Update_Call) Run(run func(v semver.Version, repo string)) *MockOMSUpdater_Update_Call
func (*MockOMSUpdater_Update_Call) RunAndReturn ¶ added in v0.13.0
func (_c *MockOMSUpdater_Update_Call) RunAndReturn(run func(v semver.Version, repo string) (semver.Version, string, error)) *MockOMSUpdater_Update_Call
type OMSSelfUpdater ¶ added in v0.12.0
type OMSSelfUpdater struct{}
type OMSUpdater ¶ added in v0.12.0
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 UpdateAPIKeyCmd ¶ added in v0.12.0
type UpdateAPIKeyCmd struct {
Opts UpdateAPIKeyOpts
}
func (*UpdateAPIKeyCmd) UpdateAPIKey ¶ added in v0.12.0
func (c *UpdateAPIKeyCmd) UpdateAPIKey(p portal.Portal) error
type UpdateAPIKeyOpts ¶ added in v0.12.0
type UpdateAPIKeyOpts struct {
GlobalOptions
APIKeyID string
ExpiresAtStr string
}
type UpdateOmsCmd ¶ added in v0.12.0
type UpdateOmsCmd struct {
Version version.Version
Updater OMSUpdater
}
func (*UpdateOmsCmd) SelfUpdate ¶ added in v0.12.0
func (c *UpdateOmsCmd) SelfUpdate() error
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
}