cluster

package
v0.0.0-...-09e780c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApply

func AddApply(apiSchemas *types.APISchemas, schema *types.APISchema)

func Register

func Register(ctx context.Context, apiSchemas *types.APISchemas, cg proxy.ClientGetter, schemaFactory steveschema.Factory)

Types

type Apply

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

func (*Apply) ServeHTTP

func (a *Apply) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type ApplyInput

type ApplyInput struct {
	DefaultNamespace string `json:"defaultNamespace,omitempty"`
	YAML             string `json:"yaml,omitempty"`
}

type ApplyOutput

type ApplyOutput struct {
	Resources []runtime.Object `json:"resources,omitempty"`
}

type Cluster

type Cluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              Spec   `json:"spec"`
	Status            Status `json:"status"`
}

type Spec

type Spec struct {
	DisplayName string `json:"displayName" norman:"required"`
	Internal    bool   `json:"internal,omitempty"`
	Description string `json:"description"`
}

type Status

type Status struct {
	Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"`
	Driver     string                              `json:"driver,omitempty"`
	Provider   string                              `json:"provider"`
	Version    *version.Info                       `json:"version,omitempty"`
}

type Store

type Store struct {
	empty.Store
	// contains filtered or unexported fields
}

func (*Store) ByID

func (s *Store) ByID(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)

func (*Store) List

func (s *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)

func (*Store) Watch

func (s *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, w types.WatchRequest) (chan types.APIEvent, error)

Jump to

Keyboard shortcuts

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