project

package
v0.8.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(ctx context.Context, opts Options) (client.Client, error)

func Create

func Create(ctx context.Context, opts Options, name, defaultRegion string, supportedRegions []string) error

func Exists

func Exists(ctx context.Context, opts Options, name string) error

func List

func List(ctx context.Context, opts Options) (projects []string, warnings map[string]error, err error)

func ParseProject

func ParseProject(project string, kubeconfigs map[string]string) (serverOrKubeconfig, account, namespace string, isKubeconfig bool, err error)

func Remove

func Remove(ctx context.Context, opts Options, name string) (*apiv1.Project, error)

func Update

func Update(ctx context.Context, opts Options, project DetailProject, defaultRegion string, supportedRegions []string) error

Types

type DetailProject

type DetailProject struct {
	FullName string
	Project  *apiv1.Project
	Err      error
}

func GetDetails

func GetDetails(ctx context.Context, opts Options, projectNames []string) (projects []DetailProject, err error)

type Options

type Options struct {
	Project     string
	Kubeconfig  string
	ContextEnv  string
	AllProjects bool
	CLIConfig   *config.CLIConfig
}

func (Options) WithCLIConfig

func (o Options) WithCLIConfig(cfg *config.CLIConfig) Options

Jump to

Keyboard shortcuts

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