update

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUpdateCommand

func CreateUpdateCommand() *cobra.Command

CreateUpdateCommand will return update command

func DecorateAndUpdateMatchableAttr added in v0.1.7

func DecorateAndUpdateMatchableAttr(ctx context.Context, project, domain, workflowName string,
	updater ext.AdminUpdaterExtInterface, mcDecorator sconfig.MatchableAttributeDecorator) error

Types

type NamedEntityConfig added in v0.1.6

type NamedEntityConfig struct {
	Archive     bool   `json:"archive" pflag:",archive named entity."`
	Activate    bool   `json:"activate" pflag:",activate the named entity."`
	Description string `json:"description" pflag:",description of the named entity."`
}

func (NamedEntityConfig) GetPFlagSet added in v0.1.6

func (n NamedEntityConfig) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in NamedEntityConfig and its nested types. The format of the flags is json-name.json-sub-name... etc.

func (NamedEntityConfig) UpdateNamedEntity added in v0.1.6

func (n NamedEntityConfig) UpdateNamedEntity(ctx context.Context, name string, project string, domain string, rsType core.ResourceType, cmdCtx cmdCore.CommandContext) error

type ProjectConfig

type ProjectConfig struct {
	ActivateProject bool `json:"activateProject" pflag:",Activates the project specified as argument."`
	ArchiveProject  bool `json:"archiveProject" pflag:",Archives the project specified as argument."`
}

Config hold configuration for project update flags.

func (ProjectConfig) GetPFlagSet

func (cfg ProjectConfig) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in ProjectConfig and its nested types. The format of the flags is json-name.json-sub-name... etc.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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