Documentation
¶
Index ¶
- Variables
- func GetDeleteConfigCommand(r *DeleteConfigCommandRunner) *cobra.Command
- func GetDeleteProjectCommand(r *DeleteProjectCommandRunner) *cobra.Command
- func GetGetConfigCommand(r *GetConfigCommandRunner) *cobra.Command
- func GetGetConfigDiffCommand(r *GetConfigDiffCommandRunner) *cobra.Command
- func GetGetCostEstimateCommand(r *GetCostEstimateCommandRunner) *cobra.Command
- func GetGetHealthCommand(r *GetHealthCommandRunner) *cobra.Command
- func GetGetProjectCommand(r *GetProjectCommandRunner) *cobra.Command
- func GetGetSchematicsJobCommand(r *GetSchematicsJobCommandRunner) *cobra.Command
- func GetInstallConfigCommand(r *InstallConfigCommandRunner) *cobra.Command
- func GetListConfigsCommand(r *ListConfigsCommandRunner) *cobra.Command
- func GetListProjectsCommand(r *ListProjectsCommandRunner) *cobra.Command
- func GetPostEventNotificationCommand(r *PostEventNotificationCommandRunner) *cobra.Command
- func GetPostEventNotificationsIntegrationCommand(r *PostEventNotificationsIntegrationCommandRunner) *cobra.Command
- func GetPostNotificationCommand(r *PostNotificationCommandRunner) *cobra.Command
- func GetProjectsV1Command(utils Utilities) *cobra.Command
- func GetUninstallConfigCommand(r *UninstallConfigCommandRunner) *cobra.Command
- func InitializeService(utils Utilities)
- type DeleteConfigCommandRunner
- type DeleteConfigRequestSender
- type DeleteProjectCommandRunner
- type DeleteProjectRequestSender
- type GetConfigCommandRunner
- type GetConfigDiffCommandRunner
- type GetConfigDiffRequestSender
- type GetConfigRequestSender
- type GetCostEstimateCommandRunner
- type GetCostEstimateRequestSender
- type GetHealthCommandRunner
- type GetHealthRequestSender
- type GetProjectCommandRunner
- type GetProjectRequestSender
- type GetSchematicsJobCommandRunner
- type GetSchematicsJobRequestSender
- type InstallConfigCommandRunner
- type InstallConfigRequestSender
- type ListConfigsCommandRunner
- type ListConfigsRequestSender
- type ListProjectsAllPagesRequestSender
- type ListProjectsCommandRunner
- type ListProjectsRequestSender
- type PostEventNotificationCommandRunner
- type PostEventNotificationRequestSender
- type PostEventNotificationsIntegrationCommandRunner
- type PostEventNotificationsIntegrationRequestSender
- type PostNotificationCommandRunner
- type PostNotificationRequestSender
- type ProjectsV1CommandHelper
- type RequestSender
- type ServiceCommandHelper
- type UninstallConfigCommandRunner
- type UninstallConfigRequestSender
- type Utilities
Constants ¶
This section is empty.
Variables ¶
var ServiceInstance *projectsv1.ProjectsV1
Functions ¶
func GetDeleteConfigCommand ¶
func GetDeleteConfigCommand(r *DeleteConfigCommandRunner) *cobra.Command
Command mapping: delete_config, GetDeleteConfigCommand
func GetDeleteProjectCommand ¶
func GetDeleteProjectCommand(r *DeleteProjectCommandRunner) *cobra.Command
Command mapping: delete, GetDeleteProjectCommand
func GetGetConfigCommand ¶
func GetGetConfigCommand(r *GetConfigCommandRunner) *cobra.Command
Command mapping: config-operation, GetGetConfigCommand
func GetGetConfigDiffCommand ¶
func GetGetConfigDiffCommand(r *GetConfigDiffCommandRunner) *cobra.Command
Command mapping: config-diff, GetGetConfigDiffCommand
func GetGetCostEstimateCommand ¶
func GetGetCostEstimateCommand(r *GetCostEstimateCommandRunner) *cobra.Command
Command mapping: get_cost_estimate, GetGetCostEstimateCommand
func GetGetHealthCommand ¶
func GetGetHealthCommand(r *GetHealthCommandRunner) *cobra.Command
Command mapping: health, GetGetHealthCommand
func GetGetProjectCommand ¶
func GetGetProjectCommand(r *GetProjectCommandRunner) *cobra.Command
Command mapping: get, GetGetProjectCommand
func GetGetSchematicsJobCommand ¶
func GetGetSchematicsJobCommand(r *GetSchematicsJobCommandRunner) *cobra.Command
Command mapping: get_schematics_job, GetGetSchematicsJobCommand
func GetInstallConfigCommand ¶
func GetInstallConfigCommand(r *InstallConfigCommandRunner) *cobra.Command
Command mapping: install, GetInstallConfigCommand
func GetListConfigsCommand ¶
func GetListConfigsCommand(r *ListConfigsCommandRunner) *cobra.Command
Command mapping: configs, GetListConfigsCommand
func GetListProjectsCommand ¶
func GetListProjectsCommand(r *ListProjectsCommandRunner) *cobra.Command
Command mapping: list, GetListProjectsCommand
func GetPostEventNotificationCommand ¶
func GetPostEventNotificationCommand(r *PostEventNotificationCommandRunner) *cobra.Command
Command mapping: post-event-notification, GetPostEventNotificationCommand
func GetPostEventNotificationsIntegrationCommand ¶
func GetPostEventNotificationsIntegrationCommand(r *PostEventNotificationsIntegrationCommandRunner) *cobra.Command
Command mapping: post-event-notifications-integration, GetPostEventNotificationsIntegrationCommand
func GetPostNotificationCommand ¶
func GetPostNotificationCommand(r *PostNotificationCommandRunner) *cobra.Command
Command mapping: post-notification, GetPostNotificationCommand
func GetProjectsV1Command ¶
add a function to return the super-command
func GetUninstallConfigCommand ¶
func GetUninstallConfigCommand(r *UninstallConfigCommandRunner) *cobra.Command
Command mapping: uninstall, GetUninstallConfigCommand
func InitializeService ¶
func InitializeService(utils Utilities)
Types ¶
type DeleteConfigCommandRunner ¶
type DeleteConfigCommandRunner struct { ID string ConfigID string RequiredFlags []string // contains filtered or unexported fields }
func NewDeleteConfigCommandRunner ¶
func NewDeleteConfigCommandRunner(utils Utilities, sender RequestSender) *DeleteConfigCommandRunner
Command Runner for DeleteConfig command
func (*DeleteConfigCommandRunner) MakeRequest ¶
func (r *DeleteConfigCommandRunner) MakeRequest(OptionsModel projectsv1.DeleteConfigOptions)
type DeleteConfigRequestSender ¶
type DeleteConfigRequestSender struct{}
RequestSender for DeleteConfig command
func (DeleteConfigRequestSender) Send ¶
func (s DeleteConfigRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type DeleteProjectCommandRunner ¶
type DeleteProjectCommandRunner struct { ID string RequiredFlags []string // contains filtered or unexported fields }
func NewDeleteProjectCommandRunner ¶
func NewDeleteProjectCommandRunner(utils Utilities, sender RequestSender) *DeleteProjectCommandRunner
Command Runner for DeleteProject command
func (*DeleteProjectCommandRunner) MakeRequest ¶
func (r *DeleteProjectCommandRunner) MakeRequest(OptionsModel projectsv1.DeleteProjectOptions)
type DeleteProjectRequestSender ¶
type DeleteProjectRequestSender struct{}
RequestSender for DeleteProject command
func (DeleteProjectRequestSender) Send ¶
func (s DeleteProjectRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type GetConfigCommandRunner ¶
type GetConfigCommandRunner struct { ID string ConfigID string Version string Complete bool RequiredFlags []string // contains filtered or unexported fields }
func NewGetConfigCommandRunner ¶
func NewGetConfigCommandRunner(utils Utilities, sender RequestSender) *GetConfigCommandRunner
Command Runner for GetConfig command
func (*GetConfigCommandRunner) MakeRequest ¶
func (r *GetConfigCommandRunner) MakeRequest(OptionsModel projectsv1.GetConfigOptions)
type GetConfigDiffCommandRunner ¶
type GetConfigDiffCommandRunner struct { ID string ConfigID string RequiredFlags []string // contains filtered or unexported fields }
func NewGetConfigDiffCommandRunner ¶
func NewGetConfigDiffCommandRunner(utils Utilities, sender RequestSender) *GetConfigDiffCommandRunner
Command Runner for GetConfigDiff command
func (*GetConfigDiffCommandRunner) MakeRequest ¶
func (r *GetConfigDiffCommandRunner) MakeRequest(OptionsModel projectsv1.GetConfigDiffOptions)
type GetConfigDiffRequestSender ¶
type GetConfigDiffRequestSender struct{}
RequestSender for GetConfigDiff command
func (GetConfigDiffRequestSender) Send ¶
func (s GetConfigDiffRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type GetConfigRequestSender ¶
type GetConfigRequestSender struct{}
RequestSender for GetConfig command
func (GetConfigRequestSender) Send ¶
func (s GetConfigRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type GetCostEstimateCommandRunner ¶
type GetCostEstimateCommandRunner struct { ID string ConfigID string Version string RequiredFlags []string // contains filtered or unexported fields }
func NewGetCostEstimateCommandRunner ¶
func NewGetCostEstimateCommandRunner(utils Utilities, sender RequestSender) *GetCostEstimateCommandRunner
Command Runner for GetCostEstimate command
func (*GetCostEstimateCommandRunner) MakeRequest ¶
func (r *GetCostEstimateCommandRunner) MakeRequest(OptionsModel projectsv1.GetCostEstimateOptions)
type GetCostEstimateRequestSender ¶
type GetCostEstimateRequestSender struct{}
RequestSender for GetCostEstimate command
func (GetCostEstimateRequestSender) Send ¶
func (s GetCostEstimateRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type GetHealthCommandRunner ¶
type GetHealthCommandRunner struct { Info bool RequiredFlags []string // contains filtered or unexported fields }
func NewGetHealthCommandRunner ¶
func NewGetHealthCommandRunner(utils Utilities, sender RequestSender) *GetHealthCommandRunner
Command Runner for GetHealth command
func (*GetHealthCommandRunner) MakeRequest ¶
func (r *GetHealthCommandRunner) MakeRequest(OptionsModel projectsv1.GetHealthOptions)
type GetHealthRequestSender ¶
type GetHealthRequestSender struct{}
RequestSender for GetHealth command
func (GetHealthRequestSender) Send ¶
func (s GetHealthRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type GetProjectCommandRunner ¶
type GetProjectCommandRunner struct { ID string ExcludeConfigs bool Complete bool RequiredFlags []string // contains filtered or unexported fields }
func NewGetProjectCommandRunner ¶
func NewGetProjectCommandRunner(utils Utilities, sender RequestSender) *GetProjectCommandRunner
Command Runner for GetProject command
func (*GetProjectCommandRunner) MakeRequest ¶
func (r *GetProjectCommandRunner) MakeRequest(OptionsModel projectsv1.GetProjectOptions)
type GetProjectRequestSender ¶
type GetProjectRequestSender struct{}
RequestSender for GetProject command
func (GetProjectRequestSender) Send ¶
func (s GetProjectRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type GetSchematicsJobCommandRunner ¶
type GetSchematicsJobCommandRunner struct { ID string ConfigID string Action string Since int64 RequiredFlags []string // contains filtered or unexported fields }
func NewGetSchematicsJobCommandRunner ¶
func NewGetSchematicsJobCommandRunner(utils Utilities, sender RequestSender) *GetSchematicsJobCommandRunner
Command Runner for GetSchematicsJob command
func (*GetSchematicsJobCommandRunner) MakeRequest ¶
func (r *GetSchematicsJobCommandRunner) MakeRequest(OptionsModel projectsv1.GetSchematicsJobOptions)
type GetSchematicsJobRequestSender ¶
type GetSchematicsJobRequestSender struct{}
RequestSender for GetSchematicsJob command
func (GetSchematicsJobRequestSender) Send ¶
func (s GetSchematicsJobRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type InstallConfigCommandRunner ¶
type InstallConfigCommandRunner struct { ID string ConfigID string RequiredFlags []string // contains filtered or unexported fields }
func NewInstallConfigCommandRunner ¶
func NewInstallConfigCommandRunner(utils Utilities, sender RequestSender) *InstallConfigCommandRunner
Command Runner for InstallConfig command
func (*InstallConfigCommandRunner) MakeRequest ¶
func (r *InstallConfigCommandRunner) MakeRequest(OptionsModel projectsv1.InstallConfigOptions)
type InstallConfigRequestSender ¶
type InstallConfigRequestSender struct{}
RequestSender for InstallConfig command
func (InstallConfigRequestSender) Send ¶
func (s InstallConfigRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type ListConfigsCommandRunner ¶
type ListConfigsCommandRunner struct { ID string Version string Complete bool RequiredFlags []string // contains filtered or unexported fields }
func NewListConfigsCommandRunner ¶
func NewListConfigsCommandRunner(utils Utilities, sender RequestSender) *ListConfigsCommandRunner
Command Runner for ListConfigs command
func (*ListConfigsCommandRunner) MakeRequest ¶
func (r *ListConfigsCommandRunner) MakeRequest(OptionsModel projectsv1.ListConfigsOptions)
type ListConfigsRequestSender ¶
type ListConfigsRequestSender struct{}
RequestSender for ListConfigs command
func (ListConfigsRequestSender) Send ¶
func (s ListConfigsRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type ListProjectsAllPagesRequestSender ¶
type ListProjectsAllPagesRequestSender struct{}
func (ListProjectsAllPagesRequestSender) Send ¶
func (s ListProjectsAllPagesRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type ListProjectsCommandRunner ¶
type ListProjectsCommandRunner struct { Start string Limit int64 Complete bool RequiredFlags []string GetAllPages bool // contains filtered or unexported fields }
func NewListProjectsCommandRunner ¶
func NewListProjectsCommandRunner(utils Utilities, sender RequestSender, allPagesSender RequestSender) *ListProjectsCommandRunner
Command Runner for ListProjects command
func (*ListProjectsCommandRunner) MakeRequest ¶
func (r *ListProjectsCommandRunner) MakeRequest(OptionsModel projectsv1.ListProjectsOptions)
type ListProjectsRequestSender ¶
type ListProjectsRequestSender struct{}
RequestSender for ListProjects command
func (ListProjectsRequestSender) Send ¶
func (s ListProjectsRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type PostEventNotificationCommandRunner ¶
type PostEventNotificationCommandRunner struct { ID string NewID string NewSource string NewDatacontenttype string NewIbmendefaultlong string NewIbmendefaultshort string NewIbmensourceid string NewSpecversion string NewType string RequiredFlags []string // contains filtered or unexported fields }
func NewPostEventNotificationCommandRunner ¶
func NewPostEventNotificationCommandRunner(utils Utilities, sender RequestSender) *PostEventNotificationCommandRunner
Command Runner for PostEventNotification command
func (*PostEventNotificationCommandRunner) MakeRequest ¶
func (r *PostEventNotificationCommandRunner) MakeRequest(OptionsModel projectsv1.PostEventNotificationOptions)
type PostEventNotificationRequestSender ¶
type PostEventNotificationRequestSender struct{}
RequestSender for PostEventNotification command
func (PostEventNotificationRequestSender) Send ¶
func (s PostEventNotificationRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type PostEventNotificationsIntegrationCommandRunner ¶
type PostEventNotificationsIntegrationCommandRunner struct { ID string InstanceCrn string Description string Name string Enabled bool Source string RequiredFlags []string // contains filtered or unexported fields }
func NewPostEventNotificationsIntegrationCommandRunner ¶
func NewPostEventNotificationsIntegrationCommandRunner(utils Utilities, sender RequestSender) *PostEventNotificationsIntegrationCommandRunner
Command Runner for PostEventNotificationsIntegration command
func (*PostEventNotificationsIntegrationCommandRunner) MakeRequest ¶
func (r *PostEventNotificationsIntegrationCommandRunner) MakeRequest(OptionsModel projectsv1.PostEventNotificationsIntegrationOptions)
type PostEventNotificationsIntegrationRequestSender ¶
type PostEventNotificationsIntegrationRequestSender struct{}
RequestSender for PostEventNotificationsIntegration command
func (PostEventNotificationsIntegrationRequestSender) Send ¶
func (s PostEventNotificationsIntegrationRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type PostNotificationCommandRunner ¶
type PostNotificationCommandRunner struct { ID string Notifications string RequiredFlags []string // contains filtered or unexported fields }
func NewPostNotificationCommandRunner ¶
func NewPostNotificationCommandRunner(utils Utilities, sender RequestSender) *PostNotificationCommandRunner
Command Runner for PostNotification command
func (*PostNotificationCommandRunner) MakeRequest ¶
func (r *PostNotificationCommandRunner) MakeRequest(OptionsModel projectsv1.PostNotificationOptions)
type PostNotificationRequestSender ¶
type PostNotificationRequestSender struct{}
RequestSender for PostNotification command
func (PostNotificationRequestSender) Send ¶
func (s PostNotificationRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type ProjectsV1CommandHelper ¶
type ProjectsV1CommandHelper struct { RequiredFlags []string // contains filtered or unexported fields }
func (*ProjectsV1CommandHelper) CreateServiceInstance ¶
func (r *ProjectsV1CommandHelper) CreateServiceInstance(options projectsv1.ProjectsV1Options)
func (*ProjectsV1CommandHelper) GetAuthenticatorAndURL ¶
func (r *ProjectsV1CommandHelper) GetAuthenticatorAndURL() (core.Authenticator, string)
func (*ProjectsV1CommandHelper) InitializeServiceInstance ¶
func (r *ProjectsV1CommandHelper) InitializeServiceInstance(parentFlags *pflag.FlagSet)
type RequestSender ¶
type RequestSender interface {
Send(interface{}) (interface{}, *core.DetailedResponse, error)
}
type ServiceCommandHelper ¶
var Service ServiceCommandHelper
type UninstallConfigCommandRunner ¶
type UninstallConfigCommandRunner struct { ID string ConfigID string RequiredFlags []string // contains filtered or unexported fields }
func NewUninstallConfigCommandRunner ¶
func NewUninstallConfigCommandRunner(utils Utilities, sender RequestSender) *UninstallConfigCommandRunner
Command Runner for UninstallConfig command
func (*UninstallConfigCommandRunner) MakeRequest ¶
func (r *UninstallConfigCommandRunner) MakeRequest(OptionsModel projectsv1.UninstallConfigOptions)
type UninstallConfigRequestSender ¶
type UninstallConfigRequestSender struct{}
RequestSender for UninstallConfig command
func (UninstallConfigRequestSender) Send ¶
func (s UninstallConfigRequestSender) Send(optionsModel interface{}) (interface{}, *core.DetailedResponse, error)
type Utilities ¶
type Utilities interface { HandleError(error, string) ConfirmRunningCommand() GetServiceURL(func(string) (string, error)) string GetJsonStringAsBytes(string) []byte ProcessResponse(*core.DetailedResponse, error) ProcessEmptyResponse(*core.DetailedResponse, error) ProcessBinaryResponse(*core.DetailedResponse, error, string) ExposeOutputFormatVar() *string ExposeJMESQueryVar() *string SetJMESQuery(string) GetJMESQuery() string SetTableHeaderOrder([]string) CheckResponseForError(*core.DetailedResponse, error) (bool, interface{}) NonZeroExit() Say(string) Ok() Prompt(string, *terminal.PromptOptions) *terminal.Prompt ConfirmDelete(bool) bool WriteFile(interface{}, string) error PrintOutput(interface{}, io.Writer) OutputIsNotMachineReadable() bool GetAuthenticator(string) (core.Authenticator, error) GetRegionFromContext() string PostProcessServiceConfiguration(*core.BaseService, string) error InitializeLogger(bool) ValidateRequiredFlags([]string, *pflag.FlagSet, string) error CreateErrorWithMessage(error, string) error SetServiceErrorMessages(map[string]string) GetPluginConfig() plugin.PluginConfig }