commands

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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 CatalogProvidersCreateCommand added in v1.1.0

type CatalogProvidersCreateCommand struct {
	common.PortalFlags
	Name string `arg:"name" help:"Name of the catalog provider."`
}

func (CatalogProvidersCreateCommand) Run added in v1.1.0

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

type CatalogProvidersDeleteCommand added in v1.1.0

type CatalogProvidersDeleteCommand struct {
	common.PortalFlags
	Name string `arg:"name" help:"Name of the catalog provider."`
}

func (CatalogProvidersDeleteCommand) Run added in v1.1.0

type CatalogProvidersGetCommand

type CatalogProvidersGetCommand struct {
	common.PortalFlags
	Name *string `arg:"name" optional:"" help:"Name of the catalog provider to get. If not provided, lists all catalog providers."`
}

func (CatalogProvidersGetCommand) Run

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

type Cli

type Cli struct {
	common.Globals

	Auth    AuthCommand    `cmd:"auth"`
	Create  CreateCommand  `cmd:"create"`
	Get     GetCommand     `cmd:"get" predictor:"getPredictor"`
	Delete  DeleteCommand  `cmd:"delete"`
	Version VersionCommand `cmd:"version"`
}

func (*Cli) AfterApply

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

type ClustersGetCommand

type ClustersGetCommand struct {
	Id *uuid.UUID `arg:"id" optional:"" name:"id" help:"ID of the cluster to get. If not provided, lists all clusters."`
}

func (ClustersGetCommand) Run

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

type ConnectionsCreateCommand added in v1.1.0

type ConnectionsCreateCommand struct {
	common.PortalFlags
	Name string `arg:"name" help:"Name of the connection."`
	Type string `arg:"type" help:"Type of the connection."`
}

func (ConnectionsCreateCommand) Run added in v1.1.0

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

type ConnectionsDeleteCommand added in v1.1.0

type ConnectionsDeleteCommand struct {
	common.PortalFlags
	Name string `arg:"name" help:"Name of the connection."`
}

func (ConnectionsDeleteCommand) Run added in v1.1.0

type ConnectionsGetCommand added in v1.1.0

type ConnectionsGetCommand struct {
	common.PortalFlags
	Name *string `arg:"name" optional:"" help:"Name of the connection to get. If not provided, lists all connections."`
}

func (ConnectionsGetCommand) Run added in v1.1.0

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

type Context

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

type CreateCommand added in v1.1.0

type CreateCommand struct {
	Tenant           TenantsCreateCommand           `cmd:"tenant" name:"tenant"`
	TenantUser       TenantUsersCreateCommand       `cmd:"tenantuser" name:"tenantuser"`
	IdentityProvider IdentityProvidersCreateCommand `cmd:"identityprovider" name:"identityprovider"`
	Portal           PortalsCreateCommand           `cmd:"portal" name:"portal"`
	Integration      IntegrationsCreateCommand      `cmd:"integration" name:"integration"`
	CatalogProvider  CatalogProvidersCreateCommand  `cmd:"catalogprovider" name:"catalogprovider"`
	Connection       ConnectionsCreateCommand       `cmd:"connection" name:"connection"`
}

type DeleteCommand added in v1.1.0

type DeleteCommand struct {
	Org               OrgsDeleteCommand             `cmd:"org" name:"org"`
	Tenants           TenantsDeleteCommand          `cmd:"tenant" name:"tenant"`
	TenantUsers       TenantUsersDeleteCommand      `cmd:"tenantuser" name:"tenantuser"`
	IdentityProviders IdentityProviderDeleteCommand `cmd:"identityprovider" name:"identityprovider"`
	Portals           PortalDeleteCommand           `cmd:"portals" name:"portals"`
	CatalogProviders  CatalogProvidersDeleteCommand `cmd:"catalogproviders" name:"catalogproviders"`
	Integrations      IntegrationsDeleteCommand     `cmd:"integrations" name:"integrations"`
	Connections       ConnectionsDeleteCommand      `cmd:"connections" name:"connections"`
}

type GetCommand added in v1.1.0

type GetCommand struct {
	Clusters          ClustersGetCommand          `cmd:"clusters"`
	Orgs              OrgsGetCommand              `cmd:"orgs"`
	PortalVersions    PortalVersionsGetCommand    `cmd:"portalversions" name:"portalversions"`
	Tenants           TenantsGetCommand           `cmd:"tenants" name:"tenants"`
	TenantUsers       TenantUsersGetCommand       `cmd:"tenantusers" name:"tenantusers"`
	IdentityProviders IdentityProvidersGetCommand `cmd:"identityproviders" name:"identityproviders"`
	Portals           PortalsGetCommand           `cmd:"portals" name:"portals"`
	CatalogProviders  CatalogProvidersGetCommand  `cmd:"catalogproviders" name:"catalogproviders"`
	Integrations      IntegrationsGetCommand      `cmd:"integrations" name:"integrations"`
	Connections       ConnectionsGetCommand       `cmd:"connections" name:"connections"`
}

type IdentityProviderDeleteCommand

type IdentityProviderDeleteCommand struct {
	common.TenantFlags
	Name string `arg:"name" help:"Name of the identity provider."`
}

func (IdentityProviderDeleteCommand) Run

type IdentityProvidersCreateCommand

type IdentityProvidersCreateCommand struct {
	common.TenantFlags
	Name string `arg:"name" help:"Name of the identity provider."`
	Type string `arg:"type" help:"Type of the identity provider."`
}

func (IdentityProvidersCreateCommand) Run

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

type IdentityProvidersGetCommand

type IdentityProvidersGetCommand struct {
	common.TenantFlags
	Name *string `arg:"name" optional:"" help:"Name of the identity provider to get. If not provided, lists all identity providers."`
}

func (IdentityProvidersGetCommand) Run

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

type IntegrationsCreateCommand added in v1.1.0

type IntegrationsCreateCommand struct {
	common.PortalFlags
	Name string `arg:"name" help:"Name of the integration."`
	Type string `arg:"type" help:"Type of the integration."`
}

func (IntegrationsCreateCommand) Run added in v1.1.0

type IntegrationsDeleteCommand

type IntegrationsDeleteCommand struct {
	common.PortalFlags
	Name string `arg:"name" help:"Name of the integration."`
}

func (IntegrationsDeleteCommand) Run

type IntegrationsGetCommand

type IntegrationsGetCommand struct {
	common.PortalFlags
	Name *string `arg:"name" optional:"" help:"Name of the integration to get. If not provided, lists all integrations."`
}

func (IntegrationsGetCommand) Run

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

type OrgsCreateCommand

type OrgsCreateCommand struct {
	Name      string `arg:"name" help:"Name of the organization."`
	ClusterID string `arg:"cluster-id" help:"ID of the cluster to create the organization in."`
}

func (OrgsCreateCommand) Run

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

type OrgsDeleteCommand

type OrgsDeleteCommand struct {
	Id uuid.UUID `arg:"id" help:"ID of the organization to delete."`
}

func (*OrgsDeleteCommand) Run

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

type OrgsGetCommand

type OrgsGetCommand struct {
	Id *uuid.UUID `arg:"id" optional:"" name:"id" help:"ID of the organization to get. If not provided, lists all organizations."`
}

func (OrgsGetCommand) Run

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

type PluginDefinitionsCommand

type PluginDefinitionsCommand struct {
	List PluginDefinitionsListCommand `cmd:"list"`
	Get  PluginDefinitionsGetCommand  `cmd:"get"`
}

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 PortalDeleteCommand

type PortalDeleteCommand struct {
	common.OrgFlags
	Name string `arg:"name" help:"Name of the portal to delete."`
}

func (PortalDeleteCommand) Run

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

type PortalVersionsGetCommand added in v1.1.0

type PortalVersionsGetCommand struct {
	Id   *string `arg:"id" optional:"" help:"ID of the portal version to get. If not provided, lists all portal versions."`
	Name *string `arg:"name" optional:"" help:"Name of the portal version to get. If not provided, lists all portal versions."`
}

func (PortalVersionsGetCommand) Run added in v1.1.0

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

type PortalsCreateCommand

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

func (PortalsCreateCommand) Run

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

type PortalsGetCommand

type PortalsGetCommand struct {
	common.OrgFlags
	Name *string `arg:"name" optional:"" help:"Name of the portal to get. If not provided, lists all portals."`
}

func (PortalsGetCommand) Run

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

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 TenantsCreateCommand

type TenantsCreateCommand struct {
	common.OrgFlags
	Name        string `arg:"name" help:"Name of the tenant."`
	DisplayName string `arg:"display_name" help:"Display name of the tenant."`
}

func (TenantsCreateCommand) Run

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

type TenantsDeleteCommand

type TenantsDeleteCommand struct {
	common.OrgFlags
	Name string `arg:"name" help:"Name of the tenant."`
}

func (TenantsDeleteCommand) Run

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

type TenantsGetCommand

type TenantsGetCommand struct {
	common.OrgFlags
	Name *string `arg:"name" optional:"" help:"Name of the tenant."`
}

func (TenantsGetCommand) Run

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

type VersionCommand added in v1.1.0

type VersionCommand struct{}

func (VersionCommand) Run added in v1.1.0

func (c VersionCommand) Run(vars kong.Vars) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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