tag

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagTag    = "tag"
	FlagTenant = "tenant"
)

Variables

This section is empty.

Functions

func AskTags

func AskTags(ask question.Asker, value []string, newValue []string, getAllTagSetsCallback GetAllTagSetsCallback) ([]string, error)

func AskTenants

func AskTenants(ask question.Asker, value string, getTenantsCallback GetTenantsCallback, getTenantCallback GetTenantCallback) (*tenants.Tenant, error)

func NewCmdTag

func NewCmdTag(f factory.Factory) *cobra.Command

func PromptMissing

func PromptMissing(opts *TagOptions) ([]cmd.Dependable, error)

Types

type GetAllTagSetsCallback

type GetAllTagSetsCallback func() ([]*tagsets.TagSet, error)

type GetTenantCallback

type GetTenantCallback func(tenantIdentifier string) (*tenants.Tenant, error)

type GetTenantsCallback

type GetTenantsCallback func() ([]*tenants.Tenant, error)

type TagFlags

type TagFlags struct {
	Tag    *flag.Flag[[]string]
	Tenant *flag.Flag[string]
}

func NewTagFlags

func NewTagFlags() *TagFlags

type TagOptions

type TagOptions struct {
	*TagFlags
	*cmd.Dependencies
	GetAllTagsCallback GetAllTagSetsCallback
	GetTenantCallback  GetTenantCallback
	GetTenantsCallback GetTenantsCallback
	// contains filtered or unexported fields
}

func NewTagOptions

func NewTagOptions(tagFlags *TagFlags, dependencies *cmd.Dependencies) *TagOptions

func (*TagOptions) Commit

func (to *TagOptions) Commit() error

func (*TagOptions) GenerateAutomationCmd

func (to *TagOptions) GenerateAutomationCmd()

Jump to

Keyboard shortcuts

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