commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 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 ConfigPath

func ConfigPath() (*string, error)

Types

type AuthCommand

type AuthCommand struct {
	Login  AuthLoginCommand  `cmd:"login"`
	Token  AuthTokenCommand  `cmd:"token"`
	Whoami AuthWhoamiCommand `cmd:"whoami"`
}

type AuthLoginCommand

type AuthLoginCommand struct {
	AuthEndpoint string `name:"auth-endpoint" default:"${authEndpoint}"`
}

func (*AuthLoginCommand) BeforeApply

func (c *AuthLoginCommand) BeforeApply(ctx *Context, globals *common.Globals) error

func (AuthLoginCommand) Run

func (a AuthLoginCommand) Run(globals *common.Globals) error

type AuthTokenCommand

type AuthTokenCommand struct{}

func (AuthTokenCommand) Run

func (a AuthTokenCommand) Run(ctx *Context) error

type AuthWhoamiCommand

type AuthWhoamiCommand struct{}

func (*AuthWhoamiCommand) Run

func (c *AuthWhoamiCommand) Run(ctx *Context, kc *kong.Context) error

type CatalogProvidersCommand

type CatalogProvidersCommand struct {
	List CatalogProvidersListCommand `cmd:"list"`
	Get  CatalogProvidersGetCommand  `cmd:"update"`
}

type CatalogProvidersGetCommand

type CatalogProvidersGetCommand struct {
	common.PortalFlags
	Name string `arg:"name"`
}

func (*CatalogProvidersGetCommand) Run

func (c *CatalogProvidersGetCommand) Run(parent *Cli, ctx *Context) error

type CatalogProvidersListCommand

type CatalogProvidersListCommand struct {
	common.PortalFlags
}

func (*CatalogProvidersListCommand) Run

func (c *CatalogProvidersListCommand) Run(parent *Cli, ctx *Context) error

type Cli

type Cli struct {
	common.Globals

	Auth              AuthCommand              `cmd:"auth"`
	Clusters          ClustersCommand          `cmd:"clusters"`
	Orgs              OrgsCommand              `cmd:"orgs"`
	TenantUsers       TenantUsersCommand       `cmd:"tenantusers"`
	Tenants           TenantsCommand           `cmd:"tenants"`
	Portals           PortalsCommand           `cmd:"portals"`
	Integrations      IntegrationsCommand      `cmd:"integrations"`
	CatalogProviders  CatalogProvidersCommand  `cmd:"catalogproviders"`
	PluginDefinitions PluginDefinitionsCommand `cmd:"plugindefinitions"`
	IdentityProviders IdentityProvidersCommand `cmd:"identityproviders"`
}

func (*Cli) AfterApply

func (c *Cli) AfterApply(ctx *Context, globals *common.Globals) error

type ClustersCommand

type ClustersCommand struct {
	List ClustersListCommand `cmd:"list"`
	Get  ClustersGetCommand  `cmd:"get"`
}

type ClustersGetCommand

type ClustersGetCommand struct {
	Id string `arg:"id"`
}

func (*ClustersGetCommand) Run

func (c *ClustersGetCommand) Run(parent *Cli, ctx *Context) error

type ClustersListCommand

type ClustersListCommand struct{}

func (*ClustersListCommand) Run

func (c *ClustersListCommand) Run(parent *Cli, ctx *Context) error

type Context

type Context struct {
	APIClient       *apiv1.ClientWithResponses
	Config          *flightdeckclient.Config
	SkipConfigCheck bool
}

type IdentityProviderDeleteCommand

type IdentityProviderDeleteCommand struct {
	common.TenantFlags
	Name string `arg:"name"`
}

func (IdentityProviderDeleteCommand) Run

type IdentityProvidersCommand

type IdentityProvidersCommand struct {
	Create IdentityProvidersCreateCommand `cmd:"create"`
	List   IdentityProvidersListCommand   `cmd:"list"`
	Get    IdentityProvidersGetCommand    `cmd:"get"`
	Delete IdentityProviderDeleteCommand  `cmd:"delete"`
}

type IdentityProvidersCreateCommand

type IdentityProvidersCreateCommand struct {
	common.TenantFlags
	Name string `arg:"name"`
	Type string `arg:"type"`
}

func (*IdentityProvidersCreateCommand) Run

func (c *IdentityProvidersCreateCommand) Run(parent *Cli, ctx *Context) error

type IdentityProvidersGetCommand

type IdentityProvidersGetCommand struct {
	common.TenantFlags
	Name string `arg:"name"`
}

func (*IdentityProvidersGetCommand) Run

func (c *IdentityProvidersGetCommand) Run(parent *Cli, ctx *Context) error

type IdentityProvidersListCommand

type IdentityProvidersListCommand struct {
	common.TenantFlags
}

func (*IdentityProvidersListCommand) Run

func (c *IdentityProvidersListCommand) Run(parent *Cli, ctx *Context) error

type IntegrationsCommand

type IntegrationsCommand struct {
	List   IntegrationsListCommand   `cmd:"list"`
	Get    IntegrationsGetCommand    `cmd:"get"`
	Delete IntegrationsDeleteCommand `cmd:"delete"`
}

type IntegrationsDeleteCommand

type IntegrationsDeleteCommand struct {
	common.PortalFlags
	Name string `arg:"name"`
}

func (IntegrationsDeleteCommand) Run

type IntegrationsGetCommand

type IntegrationsGetCommand struct {
	common.PortalFlags
	Name string `arg:"name"`
}

func (*IntegrationsGetCommand) Run

func (c *IntegrationsGetCommand) Run(parent *Cli, ctx *Context) error

type IntegrationsListCommand

type IntegrationsListCommand struct {
	common.PortalFlags
}

func (*IntegrationsListCommand) Run

func (c *IntegrationsListCommand) Run(parent *Cli, ctx *Context) error

type OrgsCommand

type OrgsCommand struct {
	Create OrgsCreateCommand `cmd:"create"`
	List   OrgsListCommand   `cmd:"list"`
	Get    OrgsGetCommand    `cmd:"get"`
	Delete OrgsDeleteCommand `cmd:"delete"`
}

type OrgsCreateCommand

type OrgsCreateCommand struct {
	Name      string `arg:"name"`
	ClusterID string `arg:"cluster-id"`
}

func (*OrgsCreateCommand) Run

func (c *OrgsCreateCommand) Run(parent *Cli, ctx *Context) error

type OrgsDeleteCommand

type OrgsDeleteCommand struct {
	Id string `arg:"id"`
}

func (*OrgsDeleteCommand) Run

func (c *OrgsDeleteCommand) Run(ctx *Context) error

type OrgsGetCommand

type OrgsGetCommand struct {
	Id string `arg:"id"`
}

func (*OrgsGetCommand) Run

func (c *OrgsGetCommand) Run(parent *Cli, ctx *Context) error

type OrgsListCommand

type OrgsListCommand struct{}

func (*OrgsListCommand) Run

func (c *OrgsListCommand) Run(parent *Cli, ctx *Context) error

type PluginDefinitionDeleteCommand

type PluginDefinitionDeleteCommand struct {
	common.OrgFlags
	Name    string `arg:"name"`
	Version int    `arg:"version"`
}

func (PluginDefinitionDeleteCommand) Run

type PluginDefinitionsCommand

type PluginDefinitionsCommand struct {
	Create PluginDefinitionsCreateCommand `cmd:"create"`
	List   PluginDefinitionsListCommand   `cmd:"list"`
	Get    PluginDefinitionsGetCommand    `cmd:"get"`
	Update PluginDefinitionsUpdateCommand `cmd:"update"`
	Delete PluginDefinitionDeleteCommand  `cmd:"delete"`
}

type PluginDefinitionsCreateCommand

type PluginDefinitionsCreateCommand struct {
	common.OrgFlags
	Filename string `arg:"filename"`
}

func (*PluginDefinitionsCreateCommand) Run

func (c *PluginDefinitionsCreateCommand) Run(parent *Cli, ctx *Context) error

type PluginDefinitionsGetCommand

type PluginDefinitionsGetCommand struct {
	common.OrgFlags
	Name    string `arg:"name"`
	Version int    `arg:"version"`
}

func (*PluginDefinitionsGetCommand) Run

func (c *PluginDefinitionsGetCommand) Run(parent *Cli, ctx *Context) error

type PluginDefinitionsListCommand

type PluginDefinitionsListCommand struct {
	common.OrgFlags
}

func (*PluginDefinitionsListCommand) Run

func (c *PluginDefinitionsListCommand) Run(parent *Cli, ctx *Context) error

type PluginDefinitionsUpdateCommand

type PluginDefinitionsUpdateCommand struct {
	common.OrgFlags
	Filename string `arg:"filename"`
	Name     string `arg:"name"`
	Version  int    `arg:"version"`
}

func (*PluginDefinitionsUpdateCommand) Run

func (c *PluginDefinitionsUpdateCommand) Run(parent *Cli, ctx *Context) error

type PortalDeleteCommand

type PortalDeleteCommand struct {
	common.OrgFlags
	Name string `arg:"name"`
}

func (PortalDeleteCommand) Run

func (c PortalDeleteCommand) Run(ctx *Context) error

type PortalsCommand

type PortalsCommand struct {
	Create PortalsCreateCommand `cmd:"create"`
	List   PortalsListCommand   `cmd:"list"`
	Get    PortalsGetCommand    `cmd:"get"`
	Delete PortalDeleteCommand  `cmd:"delete"`
}

type PortalsCreateCommand

type PortalsCreateCommand struct {
	common.OrgFlags
	Name             string `arg:"name"`
	Domain           string `arg:"domain"`
	Title            string `arg:"title"`
	OrganizationName string `arg:"org-name"`
	Version          string `arg:"version"`
}

func (*PortalsCreateCommand) Run

func (c *PortalsCreateCommand) Run(parent *Cli, ctx *Context) error

type PortalsGetCommand

type PortalsGetCommand struct {
	common.OrgFlags
	Name string `arg:"name"`
}

func (*PortalsGetCommand) Run

func (c *PortalsGetCommand) Run(parent *Cli, ctx *Context) error

type PortalsListCommand

type PortalsListCommand struct {
	common.OrgFlags
}

func (*PortalsListCommand) Run

func (c *PortalsListCommand) Run(parent *Cli, ctx *Context) error

type TenantUsersCommand

type TenantUsersCommand struct {
	Create TenantUsersCreateCommand `cmd:"create"`
	Get    TenantUsersGetCommand    `cmd:"get"`
	List   TenantUsersListCommand   `cmd:"list"`
	Delete TenantUsersDeleteCommand `cmd:"delete"`
}

type TenantUsersCreateCommand

type TenantUsersCreateCommand struct {
	common.TenantFlags
	Username string `arg:"username"`
	Email    string `arg:"email"`
}

func (TenantUsersCreateCommand) Run

func (c TenantUsersCreateCommand) Run(parent *Cli, ctx *Context) error

type TenantUsersDeleteCommand

type TenantUsersDeleteCommand struct {
	common.TenantFlags
	Username string `arg:"username"`
}

func (TenantUsersDeleteCommand) Run

type TenantUsersGetCommand

type TenantUsersGetCommand struct {
	common.TenantFlags
	Username string `arg:"username"`
}

func (TenantUsersGetCommand) Run

func (c TenantUsersGetCommand) Run(parent *Cli, ctx *Context) error

type TenantUsersListCommand

type TenantUsersListCommand struct {
	common.TenantFlags
}

func (TenantUsersListCommand) Run

func (c TenantUsersListCommand) Run(parent *Cli, ctx *Context) error

type TenantsCommand

type TenantsCommand struct {
	Create TenantsCreateCommand `cmd:"create"`
	Get    TenantsGetCommand    `cmd:"get"`
	List   TenantsListCommand   `cmd:"list"`
	Delete TenantsDeleteCommand `cmd:"delete"`
}

type TenantsCreateCommand

type TenantsCreateCommand struct {
	common.OrgFlags
	Name        string `arg:"name"`
	DisplayName string `arg:"display_name"`
}

func (TenantsCreateCommand) Run

func (c TenantsCreateCommand) Run(parent *Cli, ctx *Context) error

type TenantsDeleteCommand

type TenantsDeleteCommand struct {
	common.OrgFlags
	Name string `arg:"name"`
}

func (TenantsDeleteCommand) Run

func (c TenantsDeleteCommand) Run(ctx *Context) error

type TenantsGetCommand

type TenantsGetCommand struct {
	common.OrgFlags
	Name string `arg:"name"`
}

func (TenantsGetCommand) Run

func (c TenantsGetCommand) Run(parent *Cli, ctx *Context) error

type TenantsListCommand

type TenantsListCommand struct {
	common.OrgFlags
}

func (TenantsListCommand) Run

func (c TenantsListCommand) Run(parent *Cli, ctx *Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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