tag

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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