profile

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidProperty

func IsValidProperty(property string) error

IsValidProperty returns an error if the given property is invalid.

func NewCmdDisplay

func NewCmdDisplay(ctx *cmd.Context) *cmd.Command

func NewCmdGet

func NewCmdGet(ctx *cmd.Context) *cmd.Command

func NewCmdInit

func NewCmdInit(ctx *cmd.Context) *cmd.Command

func NewCmdProfile

func NewCmdProfile(ctx *cmd.Context) *cmd.Command

func NewCmdSet

func NewCmdSet(ctx *cmd.Context) *cmd.Command

func NewCmdUnset

func NewCmdUnset(ctx *cmd.Context) *cmd.Command

Types

type DisplayOpts

type DisplayOpts struct {
	IO      iostreams.IOStreams
	Profile *profile.Profile
	Format  format.Format
}

type GetOpts

type GetOpts struct {
	Ctx     context.Context
	IO      iostreams.IOStreams
	Profile *profile.Profile

	Property string
}

type InitOpts

type InitOpts struct {
	Ctx     context.Context
	IO      iostreams.IOStreams
	Profile *profile.Profile

	// Clients
	IAMClient           iam_service.ClientService
	OrganizationService organization_service.ClientService
	ProjectService      project_service.ClientService
	SecretService       preview_secret_service.ClientService

	// Flags
	VaultSecrets bool
}

type SetOpts

type SetOpts struct {
	Ctx     context.Context
	IO      iostreams.IOStreams
	Profile *profile.Profile

	// Resource Manager client
	ProjectService      project_service.ClientService
	OrganizationService organization_service.ClientService

	// Arguments
	Property string
	Value    string
	// contains filtered or unexported fields
}

type UnsetOpts

type UnsetOpts struct {
	Ctx     context.Context
	IO      iostreams.IOStreams
	Profile *profile.Profile

	Property string
	Profiles *profile.Loader
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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