update

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 28 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,
	cmdCtx cmdCore.CommandContext,
	project, domain, workflow string,
	resourceType admin.MatchableResource,
	attributeDecorator sconfig.MatchableAttributeDecorator,
	dryRun bool,
	force bool,
) error

func DiffAsYaml added in v0.7.0

func DiffAsYaml(path1, path2 string, object1, object2 any) (string, error)

DiffAsYaml marshals both objects as YAML and returns differences between marshalled values in unified format. Marshalling respects JSON field annotations.

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."`
	DryRun      bool   `json:"dryRun" pflag:",execute command without making any modifications."`
	Force       bool   `json:"force" pflag:",do not ask for an acknowledgement during updates."`
}

func (NamedEntityConfig) GetPFlagSet added in v0.1.6

func (cfg 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 (cfg NamedEntityConfig) UpdateNamedEntity(ctx context.Context, name string, project string, domain string, rsType core.ResourceType, cmdCtx cmdCore.CommandContext) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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