unversioned

package
v1.2.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: Apache-2.0 Imports: 0 Imported by: 217

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// `apiVersion` in the config yaml files
	VersionV1      = "v1"
	VersionCurrent = VersionV1
)

Define available versions.

Functions

This section is empty.

Types

type ListMetadata

type ListMetadata struct {
}

---- Metadata common to all lists ----

type ObjectMetadata

type ObjectMetadata struct {
}

---- Metadata common to all resources ----

func (ObjectMetadata) GetObjectMetadata

func (md ObjectMetadata) GetObjectMetadata() ObjectMetadata

type Resource

type Resource interface {
	GetTypeMetadata() TypeMetadata
}

All resources (and resource lists) implement the Resource interface.

type ResourceMetadata

type ResourceMetadata interface {
	GetObjectMetadata() ObjectMetadata
}

All resource Metadata (not lists) implement the ResourceMetadata interface.

type TypeMetadata

type TypeMetadata struct {
	Kind       string `json:"kind"`
	APIVersion string `json:"apiVersion"`
}

---- Type metadata ----

All resource and resource lists embed a TypeMetadata as an anonymous field.

func (TypeMetadata) GetTypeMetadata

func (md TypeMetadata) GetTypeMetadata() TypeMetadata

Jump to

Keyboard shortcuts

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