project

package
v0.8.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 18 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

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