v1

package
v0.0.0-...-f057f80 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

create a SchemeBuilder which uses functions to add types to the scheme

View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   team.GroupName,
	Version: "v1",
}

GroupVersion is the identifier for the API which includes the name of the group and the version of the API

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type Environment

type Environment struct {
	Name        string `json:"name"`
	Application string `json:"application,omitempty"`
	Production  bool   `json:"production,omitempty"`
	SourceCode  string `json:"sourcecode,omitempty"`
}

TeamSpec defines the spec for a Team resource

type Team

type Team struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata,omitempty"`

	Spec TeamSpec    `json:"spec,omitempty"`
	Spec Environment `json:"spec,environment,omitempty"`
}

Team describes a Team

type TeamList

type TeamList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`

	Items []Team `json:"items"`
}

TeamList is a list of Team resources

type TeamSpec

type TeamSpec struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Size        int    `json:"size,omitempty"`
}

TeamSpec defines the spec for a Team resource

Jump to

Keyboard shortcuts

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