Documentation
¶
Index ¶
- func AddCreateCmd(rootCmd *cobra.Command, opts shared.RootOptions)
- func AddCreateEnvCmd(p *cobra.Command, opts shared.RootOptions)
- func AddCreateOrganizationCmd(parent *cobra.Command, opts shared.RootOptions)
- func AddCreateTeamCmd(create *cobra.Command, opts shared.RootOptions)
- func AddCreateWorkspaceCmd(create *cobra.Command, opts shared.RootOptions)
- type Client
- type CreateCmd
- type CreateEnvCmd
- type CreateEnvOptions
- type CreateOrganizationCmd
- type CreateOrganizationOpts
- type CreateTeamCmd
- type CreateTeamOpts
- type CreateWorkspaceCmd
- type CreateWorkspaceOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCreateCmd ¶
func AddCreateCmd(rootCmd *cobra.Command, opts shared.RootOptions)
func AddCreateEnvCmd ¶
func AddCreateEnvCmd(p *cobra.Command, opts shared.RootOptions)
func AddCreateOrganizationCmd ¶
func AddCreateOrganizationCmd(parent *cobra.Command, opts shared.RootOptions)
func AddCreateTeamCmd ¶
func AddCreateTeamCmd(create *cobra.Command, opts shared.RootOptions)
func AddCreateWorkspaceCmd ¶
func AddCreateWorkspaceCmd(create *cobra.Command, opts shared.RootOptions)
Types ¶
type Client ¶
type Client interface {
DeployWorkspace(args api.DeployWorkspaceArgs) (*api.Workspace, error)
ListBaseimages() ([]api.Baseimage, error)
SetEnvVarOnWorkspace(workspaceId int, vars map[string]string) error
CreateOrganization(name string, adminEmail string) (*api.Organization, error)
CreateTeam(orgId string, teamName string, dcId int) (*api.Team, error)
}
type CreateEnvCmd ¶
type CreateEnvCmd struct {
Opts CreateEnvOptions
// contains filtered or unexported fields
}
func (*CreateEnvCmd) RunE ¶
func (l *CreateEnvCmd) RunE(_ *cobra.Command, args []string) (err error)
func (*CreateEnvCmd) SetEnvironmentVariables ¶
func (l *CreateEnvCmd) SetEnvironmentVariables(client Client) (err error)
type CreateEnvOptions ¶
type CreateEnvOptions struct {
shared.RootOptions
EnvVar *[]string
}
type CreateOrganizationCmd ¶
type CreateOrganizationCmd struct {
Opts CreateOrganizationOpts
// contains filtered or unexported fields
}
func (*CreateOrganizationCmd) CreateOrganization ¶
func (c *CreateOrganizationCmd) CreateOrganization(client Client, name string, adminEmail string) (*api.Organization, error)
type CreateOrganizationOpts ¶
type CreateOrganizationOpts struct {
shared.RootOptions
Name string
AdminEmail string
}
type CreateTeamCmd ¶
type CreateTeamCmd struct {
Opts CreateTeamOpts
ClientFactory func(shared.RootOptions) (Client, error)
// contains filtered or unexported fields
}
func (*CreateTeamCmd) CreateTeam ¶
type CreateTeamOpts ¶
type CreateTeamOpts struct {
shared.RootOptions
Name string
DcId int
}
type CreateWorkspaceCmd ¶
type CreateWorkspaceCmd struct {
Opts CreateWorkspaceOpts
// contains filtered or unexported fields
}
func (*CreateWorkspaceCmd) CreateWorkspace ¶
Click to show internal directories.
Click to hide internal directories.