projectsv1

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func GetProjectsV1Command(utils Utilities) *cobra.Command

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)

func (*DeleteConfigCommandRunner) Run

func (r *DeleteConfigCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running DeleteConfig

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)

func (*DeleteProjectCommandRunner) Run

func (r *DeleteProjectCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running DeleteProject

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)

func (*GetConfigCommandRunner) Run

func (r *GetConfigCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running GetConfig

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)

func (*GetConfigDiffCommandRunner) Run

func (r *GetConfigDiffCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running GetConfigDiff

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)

func (*GetCostEstimateCommandRunner) Run

func (r *GetCostEstimateCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running GetCostEstimate

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)

func (*GetHealthCommandRunner) Run

func (r *GetHealthCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running GetHealth

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)

func (*GetProjectCommandRunner) Run

func (r *GetProjectCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running GetProject

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 (*GetSchematicsJobCommandRunner) Run

func (r *GetSchematicsJobCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running GetSchematicsJob

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)

func (*InstallConfigCommandRunner) Run

func (r *InstallConfigCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running InstallConfig

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)

func (*ListConfigsCommandRunner) Run

func (r *ListConfigsCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running ListConfigs

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)

func (*ListProjectsCommandRunner) Run

func (r *ListProjectsCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running ListProjects

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 (*PostEventNotificationCommandRunner) Run

Primary logic for running PostEventNotification

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 (*PostEventNotificationsIntegrationCommandRunner) Run

Primary logic for running PostEventNotificationsIntegration

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 (*PostNotificationCommandRunner) Run

func (r *PostNotificationCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running PostNotification

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

type ServiceCommandHelper interface {
	InitializeServiceInstance(*pflag.FlagSet)
}
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)

func (*UninstallConfigCommandRunner) Run

func (r *UninstallConfigCommandRunner) Run(cmd *cobra.Command, args []string)

Primary logic for running UninstallConfig

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
}

Jump to

Keyboard shortcuts

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