kubernetes

package module
v0.0.0-...-cdc24ad Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusPending   = resource.StatusPending
	StatusRunning   = resource.StatusRunning
	StatusSucceeded = resource.StatusSucceeded
	StatusFailed    = resource.StatusFailed
	StatusUnknown   = resource.StatusUnknown
)

Functions

This section is empty.

Types

type Application

type Application = resource.Application

type ApplicationListOptions

type ApplicationListOptions struct {
	FilterNamespace string
}

type Cluster

type Cluster struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`

	State ClusterState `json:"state,omitempty"`

	Reference string `json:"reference,omitempty"`

	Version  string `json:"version,omitempty"`
	Location string `json:"location,omitempty"`

	Identity *Identity `json:"identity,omitempty"`
}

type ClusterListOptions

type ClusterListOptions struct {
	FilterReference string
}

type ClusterState

type ClusterState string
const (
	ClusterStateUnknown  ClusterState = "Unknown"
	ClusterStateRunning  ClusterState = "Running"
	ClusterStateCreating ClusterState = "Creating"
	ClusterStateUpdating ClusterState = "Updating"
	ClusterStateDeleting ClusterState = "Deleting"
	ClusterStateFailed   ClusterState = "Failed"
)

type CreateClusterNodePoolsOptions

type CreateClusterNodePoolsOptions struct {
	Name string

	Size    int
	Profile string

	Version string
}

type CreateClusterOptions

type CreateClusterOptions struct {
	Reference string

	Version  string
	Location string

	NodePools []CreateClusterNodePoolsOptions
}

type DeleteClusterOptions

type DeleteClusterOptions struct {
}

type Identity

type Identity struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Provider

type Provider interface {
	Clusters(ctx context.Context, options *ClusterListOptions) ([]Cluster, error)
	Cluster(ctx context.Context, clusterID string) (*Cluster, error)

	CreateCluster(ctx context.Context, name string, options *CreateClusterOptions) (*Cluster, error)
	DeleteCluster(ctx context.Context, clusterID string, options *DeleteClusterOptions) error

	ClusterConfig(ctx context.Context, clusterID string) ([]byte, error)

	ClusterApplications(ctx context.Context, clusterID string, options *ApplicationListOptions) ([]Application, error)
}

type Resource

type Resource = resource.Resource

type ResourceStatus

type ResourceStatus = resource.ResourceStatus

type ResourceViolation

type ResourceViolation = resource.ResourceViolation

type ResourceVulnerability

type ResourceVulnerability = resource.ResourceVulnerability

Directories

Path Synopsis
cmd
internal
pkg
to
provider

Jump to

Keyboard shortcuts

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