project

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 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

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{
		Filter: filters.DefaultFilter,
	}
)
View Source
var DefaultProjectConfig = &ConfigProject{
	Description: "",
	Labels:      map[string]string{},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Filter filters.Filters `json:"filter" pflag:","`
}

Config holds the flag for get project

func (Config) GetPFlagSet

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

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

type ConfigProject

type ConfigProject struct {
	ID              string            `json:"id" pflag:",id for the project specified as argument."`
	ActivateProject bool              `json:"activateProject" pflag:",(Deprecated) Activates the project specified as argument. Only used in update"`
	ArchiveProject  bool              `json:"archiveProject" pflag:",(Deprecated) Archives the project specified as argument. Only used in update"`
	Activate        bool              `json:"activate" pflag:",Activates the project specified as argument. Only used in update"`
	Archive         bool              `json:"archive" pflag:",Archives the project specified as argument. Only used in update"`
	Force           bool              `json:"force" pflag:",Skips asking for an acknowledgement during an update operation. Only used in update"`
	Name            string            `json:"name" pflag:",name for the project specified as argument."`
	DryRun          bool              `json:"dryRun" pflag:",execute command without making any modifications."`
	Description     string            `json:"description" pflag:",description for the project specified as argument."`
	Labels          map[string]string `json:"labels" pflag:",labels for the project specified as argument."`
	File            string            `json:"file" pflag:",file for the project definition."`
}

ConfigProject hold configuration for project update flags.

func (ConfigProject) GetPFlagSet

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

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

func (*ConfigProject) GetProjectSpec

func (c *ConfigProject) GetProjectSpec(cf *config.Config) (*admin.Project, error)

GetProjectSpec return project spec from a file/flags

func (*ConfigProject) MapToAdminState

func (c *ConfigProject) MapToAdminState() (admin.Project_ProjectState, error)

MapToAdminState return project spec from a file/flags

Jump to

Keyboard shortcuts

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