Documentation ¶
Index ¶
- func Client(ctx context.Context, opts Options) (client.Client, error)
- func Create(ctx context.Context, opts Options, name, defaultRegion string, ...) error
- func CreateNamespace(req router.Request, resp router.Response) error
- func EnsureAllAppsRemoved(req router.Request, resp router.Response) error
- func Exists(ctx context.Context, opts Options, name string) error
- func List(ctx context.Context, onlyUseCurrentServer bool, opts Options) (projects []string, warnings map[string]error, err error)
- func ParseProject(project string, defaultContext string) (server, account, namespace string, isKubeconfig bool, err error)
- func Remove(ctx context.Context, opts Options, name string) (*apiv1.Project, error)
- func RenderProjectName(project string, defaultContext string) string
- func SetProjectSupportedRegions(req router.Request, resp router.Response) error
- func Update(ctx context.Context, opts Options, project DetailProject, defaultRegion string, ...) error
- type DetailProject
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAllAppsRemoved ¶
EnsureAllAppsRemoved ensures that all apps are removed from the project before the namespace is deleted.
func List ¶
func List(ctx context.Context, onlyUseCurrentServer bool, opts Options) (projects []string, warnings map[string]error, err error)
List lists all projects available to the user. onlyUseCurrentServer: if true, only list projects from the current Acorn server. This can be an Acorn Manager instsance or a local kubeconfig. If false, list projects from all Acorn servers and the local kubeconfig.
func ParseProject ¶
func RenderProjectName ¶
Types ¶
type DetailProject ¶
func GetDetails ¶
Click to show internal directories.
Click to hide internal directories.