Documentation ¶
Index ¶
- Variables
- func CreateContainerInstance(ctx context.Context, machineType string, duration time.Duration, target string, ...) (*api.CreateContainersResponse, error)
- func InlineSsh(ctx context.Context, cluster *api.KubernetesCluster, sshAgent bool, ...) error
- func NewBareClusterCmd(use string, hidden bool) *cobra.Command
- func NewBuildCmd() *cobra.Command
- func NewBuildkitCmd() *cobra.Command
- func NewClusterCmd(hidden bool) *cobra.Command
- func NewCreateCmd() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewDestroyCmd() *cobra.Command
- func NewDockerCmd() *cobra.Command
- func NewDockerCredHelperEraseCmd(hidden bool) *cobra.Command
- func NewDockerCredHelperGetCmd(hidden bool) *cobra.Command
- func NewDockerCredHelperListCmd(hidden bool) *cobra.Command
- func NewDockerCredHelperStoreCmd(hidden bool) *cobra.Command
- func NewExecScoped() *cobra.Command
- func NewExposeCmd() *cobra.Command
- func NewIngressCmd() *cobra.Command
- func NewKubeconfigCmd() *cobra.Command
- func NewKubectlCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewLogsCmd() *cobra.Command
- func NewMetadataCmd() *cobra.Command
- func NewProxyCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewRunComposeCmd() *cobra.Command
- func NewSshCmd() *cobra.Command
- func NewTopCmd() *cobra.Command
- func NewVncCmd() *cobra.Command
- func NewVolumeCmd() *cobra.Command
- func PrintCreateClusterMsg(ctx context.Context)
- func PrintCreateContainersResult(ctx context.Context, output string, resp *api.CreateContainersResponse) error
- func SelectRunningCluster(ctx context.Context, args []string) (*api.KubernetesCluster, []string, error)
- type BuildCluster
- type CreateContainerOpts
- type LocalBuilderInstance
- type ProxyStatus
- type RemoteBuildClusterInstance
- type StatusData
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyClusterList = errors.New("no instances")
Functions ¶
func CreateContainerInstance ¶ added in v0.0.291
func NewBareClusterCmd ¶ added in v0.0.204
Used by `nsc` (and as the basis to `ns cluster`)
func NewBuildCmd ¶ added in v0.0.178
func NewBuildkitCmd ¶ added in v0.0.204
func NewCreateCmd ¶ added in v0.0.203
func NewDescribeCmd ¶ added in v0.0.230
func NewDestroyCmd ¶ added in v0.0.350
func NewDockerCmd ¶ added in v0.0.222
func NewDockerCredHelperEraseCmd ¶ added in v0.0.212
func NewDockerCredHelperGetCmd ¶ added in v0.0.212
func NewDockerCredHelperListCmd ¶ added in v0.0.212
func NewDockerCredHelperStoreCmd ¶ added in v0.0.212
func NewExecScoped ¶ added in v0.0.231
func NewExposeCmd ¶ added in v0.0.203
func NewIngressCmd ¶ added in v0.0.271
func NewKubeconfigCmd ¶ added in v0.0.209
func NewKubectlCmd ¶ added in v0.0.161
func NewListCmd ¶ added in v0.0.203
func NewLogsCmd ¶ added in v0.0.203
func NewMetadataCmd ¶ added in v0.0.203
func NewProxyCmd ¶ added in v0.0.185
func NewRunComposeCmd ¶ added in v0.0.203
func NewVolumeCmd ¶ added in v0.0.299
func PrintCreateClusterMsg ¶ added in v0.0.291
func PrintCreateContainersResult ¶ added in v0.0.291
func SelectRunningCluster ¶ added in v0.0.291
Types ¶
type BuildCluster ¶ added in v0.0.341
type BuildCluster interface { NewConn(ctx context.Context) (net.Conn, string, error) GetPlatform() string RunBuildProxy(ctx context.Context, socketPath, controlSocketPath string, useGrpcProxy, annotateBuild bool, workersInfo *controlapi.ListWorkersResponse) (*buildProxy, error) }
func NewBuildCluster ¶ added in v0.0.341
func NewBuildCluster(ctx context.Context, platformStr, buildkitSockPath string) (BuildCluster, error)
type CreateContainerOpts ¶ added in v0.0.291
type CreateContainerOpts struct { Name string Image string Args []string Env map[string]string Flags []string ExportedPorts []exportContainerPort Features []string Labels map[string]string InternalExtra string EnableDocker bool ForwardNscState bool ExposeNscBins bool Network string Experimental any InstanceExperimental any }
type LocalBuilderInstance ¶ added in v0.0.341
type LocalBuilderInstance struct {
// contains filtered or unexported fields
}
func NewLocalBuilderInstance ¶ added in v0.0.341
func NewLocalBuilderInstance(buildkitSockPath string) (*LocalBuilderInstance, error)
func (*LocalBuilderInstance) GetPlatform ¶ added in v0.0.341
func (l *LocalBuilderInstance) GetPlatform() string
func (*LocalBuilderInstance) RunBuildProxy ¶ added in v0.0.341
func (l *LocalBuilderInstance) RunBuildProxy(ctx context.Context, socketPath, controlSocketPath string, useGrpcProxy, annotateBuild bool, workersInfo *controlapi.ListWorkersResponse) (*buildProxy, error)
type ProxyStatus ¶ added in v0.0.303
type ProxyStatus string
const ( ProxyStatus_Starting ProxyStatus = "Starting" ProxyStatus_Running ProxyStatus = "Running" ProxyStatus_Failing ProxyStatus = "Failing" )
type RemoteBuildClusterInstance ¶ added in v0.0.341
type RemoteBuildClusterInstance struct {
// contains filtered or unexported fields
}
func NewRemoteBuildClusterInstance0 ¶ added in v0.0.341
func NewRemoteBuildClusterInstance0(p api.BuildPlatform) *RemoteBuildClusterInstance
func (*RemoteBuildClusterInstance) GetPlatform ¶ added in v0.0.341
func (bp *RemoteBuildClusterInstance) GetPlatform() string
func (*RemoteBuildClusterInstance) RunBuildProxy ¶ added in v0.0.341
func (bp *RemoteBuildClusterInstance) RunBuildProxy(ctx context.Context, socketPath, controlSocketPath string, useGrpcProxy, annotateBuild bool, workersInfo *controlapi.ListWorkersResponse) (*buildProxy, error)
type StatusData ¶ added in v0.0.318
Source Files ¶
- attachdocker.go
- build.go
- buildkit.go
- buildproxy.go
- buildx.go
- buildx_workers_def.go
- cmd.go
- create.go
- describe.go
- destroy.go
- docker.go
- execscoped.go
- expose.go
- extendduration.go
- grpcproxy.go
- history.go
- ingress.go
- kubectl.go
- logs.go
- metadata.go
- portforward.go
- proxy.go
- release.go
- run.go
- ssh.go
- unixsockproxy.go
- vnc.go
- volume.go
Click to show internal directories.
Click to hide internal directories.