miskatonic

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStudentBookREST added in v1.12.4

func NewStudentBookREST(getter generic.RESTOptionsGetter) rest.Storage

Custom REST storage that delegates to the generated standard Registry

func NewStudentComputerREST added in v1.12.3

func NewStudentComputerREST(getter generic.RESTOptionsGetter) rest.Storage

Custom REST storage that delegates to the generated standard Registry

func NewStudentPencilREST added in v1.12.4

func NewStudentPencilREST(getter generic.RESTOptionsGetter) rest.Storage

Custom REST storage that delegates to the generated standard Registry

func NewStudentREST added in v1.12.3

func NewStudentREST(optsGetter generic.RESTOptionsGetter) rest.Storage

Custom REST storage that delegates to the generated standard Registry

Types

type ManualCreateUnversionedType

type ManualCreateUnversionedType struct {
	A string
	B bool
}

type StudentBookREST added in v1.12.4

type StudentBookREST struct {
	StreamingHandler func(book *StudentBook) (streamer runtime.Object)
}

+k8s:deepcopy-gen=false

func (*StudentBookREST) Get added in v1.12.4

func (r *StudentBookREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error)

func (*StudentBookREST) New added in v1.12.4

func (r *StudentBookREST) New() runtime.Object

New creates a new Pod log options object

func (*StudentBookREST) NewGetOptions added in v1.12.4

func (r *StudentBookREST) NewGetOptions() (runtime.Object, bool, string)

NewGetOptions creates a new options object

func (*StudentBookREST) OverrideMetricsVerb added in v1.12.4

func (r *StudentBookREST) OverrideMetricsVerb(oldVerb string) (newVerb string)

OverrideMetricsVerb override the GET verb to CONNECT for pod log resource

func (*StudentBookREST) ProducesMIMETypes added in v1.12.4

func (r *StudentBookREST) ProducesMIMETypes(verb string) []string

LogREST implements StorageMetadata

func (*StudentBookREST) ProducesObject added in v1.12.4

func (r *StudentBookREST) ProducesObject(verb string) interface{}

LogREST implements StorageMetadata, return string as the generating object

type StudentComputerREST added in v1.12.3

type StudentComputerREST struct {
	Registry StudentRegistry
}

+k8s:deepcopy-gen=false

func (*StudentComputerREST) Create added in v1.12.3

func (r *StudentComputerREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*StudentComputerREST) Get added in v1.12.3

Get retrieves the object from the storage. It is required to support Patch.

func (*StudentComputerREST) New added in v1.12.3

func (*StudentComputerREST) Update added in v1.12.3

func (r *StudentComputerREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Update alters the status subset of an object.

type StudentPencilREST added in v1.12.4

type StudentPencilREST struct {
	HTTPHandlerGetter func(pencil *StudentPencil) http.Handler
}

+k8s:deepcopy-gen=false

func (*StudentPencilREST) Connect added in v1.12.4

func (r *StudentPencilREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)

Connect returns a handler for the pod exec proxy

func (*StudentPencilREST) ConnectMethods added in v1.12.4

func (r *StudentPencilREST) ConnectMethods() []string

ConnectMethods returns the methods supported by exec

func (*StudentPencilREST) New added in v1.12.4

func (r *StudentPencilREST) New() runtime.Object

New creates a new podAttachOptions object.

func (*StudentPencilREST) NewConnectOptions added in v1.12.4

func (r *StudentPencilREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns the versioned object that represents exec parameters

type StudentREST

type StudentREST struct {
	*genericregistry.Store
}

+k8s:deepcopy-gen=false

func (*StudentREST) Categories added in v1.12.4

func (r *StudentREST) Categories() []string

func (*StudentREST) Create

func (r *StudentREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*StudentREST) Get

func (r *StudentREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

Get retrieves the object from the storage. It is required to support Patch.

func (*StudentREST) NamespaceScoped

func (r *StudentREST) NamespaceScoped() bool

func (*StudentREST) New

func (r *StudentREST) New() runtime.Object

func (*StudentREST) ShortNames added in v1.12.4

func (r *StudentREST) ShortNames() []string

func (*StudentREST) Update

func (r *StudentREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Update alters the status subset of an object.

type UniversityCampusREST added in v1.12.3

type UniversityCampusREST struct {
	Registry UniversityRegistry
}

+k8s:deepcopy-gen=false

func (*UniversityCampusREST) Create added in v1.12.3

func (r *UniversityCampusREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*UniversityCampusREST) Get added in v1.12.3

Get retrieves the object from the storage. It is required to support Patch.

func (*UniversityCampusREST) New added in v1.12.3

func (*UniversityCampusREST) Update added in v1.12.3

func (r *UniversityCampusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Update alters the status subset of an object.

Directories

Path Synopsis
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubernetes-incubator/apiserver-builder-alpha/example/pkg/apis/miskatonic +k8s:defaulter-gen=TypeMeta +groupName=miskatonic.k8s.io
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubernetes-incubator/apiserver-builder-alpha/example/pkg/apis/miskatonic +k8s:defaulter-gen=TypeMeta +groupName=miskatonic.k8s.io

Jump to

Keyboard shortcuts

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