create

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 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 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 CreateCmd

type CreateCmd struct {
	// contains filtered or unexported fields
}

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)

func (*CreateOrganizationCmd) RunE

func (c *CreateOrganizationCmd) RunE(_ *cobra.Command, args []string) 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

func (c *CreateTeamCmd) CreateTeam(client Client, orgId string, teamName string, dcId int) (*api.Team, error)

func (*CreateTeamCmd) RunE

func (c *CreateTeamCmd) RunE(_ *cobra.Command, args []string) error

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

func (c *CreateWorkspaceCmd) CreateWorkspace(client Client, teamId int, wsName string) (*api.Workspace, error)

func (*CreateWorkspaceCmd) RunE

func (c *CreateWorkspaceCmd) RunE(_ *cobra.Command, args []string) error

type CreateWorkspaceOpts

type CreateWorkspaceOpts struct {
	shared.RootOptions
	Repo            *string
	Vpn             *string
	Env             *[]string
	Plan            *int
	Private         *bool
	Timeout         *time.Duration
	Branch          *string
	Baseimage       *string
	PublicDevDomain *bool
}

Jump to

Keyboard shortcuts

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