meta

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Overview

Package api is the internal version of the API.

Index

Constants

View Source
const GroupName = "meta.appscode.com"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type ConnectionType

type ConnectionType string
const (
	MatchSelector ConnectionType = "MatchSelector"
	MatchName     ConnectionType = "MatchName"
	MatchRef      ConnectionType = "MatchRef"
	OwnedBy       ConnectionType = "OwnedBy"
)

type Edge

type Edge struct {
	Src        GroupVersionResource
	Dst        GroupVersionResource
	W          uint64
	Connection ResourceConnectionSpec
	Forward    bool
}

func (*Edge) DeepCopy

func (in *Edge) DeepCopy() *Edge

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Edge.

func (*Edge) DeepCopyInto

func (in *Edge) DeepCopyInto(out *Edge)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GraphFinder added in v0.2.0

type GraphFinder struct {
	metav1.TypeMeta
	Request  *GraphRequest
	Response *GraphResponse
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*GraphFinder) DeepCopy added in v0.2.0

func (in *GraphFinder) DeepCopy() *GraphFinder

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GraphFinder.

func (*GraphFinder) DeepCopyInto added in v0.2.0

func (in *GraphFinder) DeepCopyInto(out *GraphFinder)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GraphFinder) DeepCopyObject added in v0.2.0

func (in *GraphFinder) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GraphRequest added in v0.2.0

type GraphRequest struct {
	Source GroupVersionResource
}

func (*GraphRequest) DeepCopy added in v0.2.0

func (in *GraphRequest) DeepCopy() *GraphRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GraphRequest.

func (*GraphRequest) DeepCopyInto added in v0.2.0

func (in *GraphRequest) DeepCopyInto(out *GraphRequest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GraphResponse added in v0.2.0

type GraphResponse struct {
	Source      GroupVersionResource
	Connections []Edge
}

func (*GraphResponse) DeepCopy added in v0.2.0

func (in *GraphResponse) DeepCopy() *GraphResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GraphResponse.

func (*GraphResponse) DeepCopyInto added in v0.2.0

func (in *GraphResponse) DeepCopyInto(out *GraphResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GroupVersionResource

type GroupVersionResource struct {
	Group    string `json:"group"`
	Version  string `json:"version"`
	Resource string `json:"resource"`
}

func (*GroupVersionResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionResource.

func (*GroupVersionResource) DeepCopyInto

func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IncludeObjectPolicy added in v0.2.2

type IncludeObjectPolicy string
const (
	IncludeNone     IncludeObjectPolicy = "None"
	IncludeMetadata IncludeObjectPolicy = "Metadata"
	IncludeObject   IncludeObjectPolicy = "Object"
)

type OwnershipLevel

type OwnershipLevel string
const (
	Reference  OwnershipLevel = ""
	Owner      OwnershipLevel = "Owner"
	Controller OwnershipLevel = "Controller"
)

type Path

type Path struct {
	Source   GroupVersionResource
	Target   GroupVersionResource
	Distance uint64
	Edges    []Edge
}

func (*Path) DeepCopy

func (in *Path) DeepCopy() *Path

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Path.

func (*Path) DeepCopyInto

func (in *Path) DeepCopyInto(out *Path)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PathFinder

type PathFinder struct {
	metav1.TypeMeta
	Request  *PathRequest
	Response *PathResponse
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PathFinder) DeepCopy

func (in *PathFinder) DeepCopy() *PathFinder

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PathFinder.

func (*PathFinder) DeepCopyInto

func (in *PathFinder) DeepCopyInto(out *PathFinder)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PathFinder) DeepCopyObject

func (in *PathFinder) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PathRequest

type PathRequest struct {
	Source GroupVersionResource
	Target *GroupVersionResource
}

func (*PathRequest) DeepCopy

func (in *PathRequest) DeepCopy() *PathRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PathRequest.

func (*PathRequest) DeepCopyInto

func (in *PathRequest) DeepCopyInto(out *PathRequest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PathResponse

type PathResponse struct {
	Paths []Path
}

func (*PathResponse) DeepCopy

func (in *PathResponse) DeepCopy() *PathResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PathResponse.

func (*PathResponse) DeepCopyInto

func (in *PathResponse) DeepCopyInto(out *PathResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReferenceType

type ReferenceType string

type ResourceColumnDefinition

type ResourceColumnDefinition struct {
	// name is a human readable name for the column.
	Name string
	// type is an OpenAPI type definition for this column.
	// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
	Type string
	// format is an optional OpenAPI type definition for this column. The 'name' format is applied
	// to the primary identifier column to assist in clients identifying column is the resource name.
	// See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
	Format string
	// description is a human readable description of this column.
	Description string
	// priority is an integer defining the relative importance of this column compared to others. Lower
	// numbers are considered higher priority. Columns that may be omitted in limited space scenarios
	// should be given a higher priority.
	Priority int32
	// JSONPath is a simple JSON path, i.e. without array notation.
	JSONPath string
}

ResourceColumnDefinition specifies a column for server side printing.

func (*ResourceColumnDefinition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceColumnDefinition.

func (*ResourceColumnDefinition) DeepCopyInto

func (in *ResourceColumnDefinition) DeepCopyInto(out *ResourceColumnDefinition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceConnection

type ResourceConnection struct {
	Target metav1.TypeMeta
	ResourceConnectionSpec
}

func (*ResourceConnection) DeepCopy

func (in *ResourceConnection) DeepCopy() *ResourceConnection

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceConnection.

func (*ResourceConnection) DeepCopyInto

func (in *ResourceConnection) DeepCopyInto(out *ResourceConnection)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceConnectionSpec

type ResourceConnectionSpec struct {
	Type            ConnectionType
	NamespacePath   string
	TargetLabelPath string
	SelectorPath    string
	Selector        *metav1.LabelSelector
	NameTemplate    string
	References      []string
	Level           OwnershipLevel
}

func (*ResourceConnectionSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceConnectionSpec.

func (*ResourceConnectionSpec) DeepCopyInto

func (in *ResourceConnectionSpec) DeepCopyInto(out *ResourceConnectionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceDescriptor

type ResourceDescriptor struct {
	metav1.TypeMeta
	metav1.ObjectMeta
	Spec ResourceDescriptorSpec
}

func (*ResourceDescriptor) DeepCopy

func (in *ResourceDescriptor) DeepCopy() *ResourceDescriptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDescriptor.

func (*ResourceDescriptor) DeepCopyInto

func (in *ResourceDescriptor) DeepCopyInto(out *ResourceDescriptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceDescriptor) DeepCopyObject

func (in *ResourceDescriptor) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceDescriptorList

type ResourceDescriptorList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []ResourceDescriptor
}

ResourceDescriptorList is a list of ResourceDescriptor objects.

func (*ResourceDescriptorList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDescriptorList.

func (*ResourceDescriptorList) DeepCopyInto

func (in *ResourceDescriptorList) DeepCopyInto(out *ResourceDescriptorList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceDescriptorList) DeepCopyObject

func (in *ResourceDescriptorList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceDescriptorSpec

type ResourceDescriptorSpec struct {
	Resource    ResourceID
	Columns     []ResourceColumnDefinition
	SubTables   []ResourceSubTableDefinition
	Connections []ResourceConnection
	KeyTargets  []metav1.TypeMeta
}

func (*ResourceDescriptorSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDescriptorSpec.

func (*ResourceDescriptorSpec) DeepCopyInto

func (in *ResourceDescriptorSpec) DeepCopyInto(out *ResourceDescriptorSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceID

type ResourceID struct {
	Group   string
	Version string
	Name    string
	Kind    string
	Scope   ResourceScope
}

func (*ResourceID) DeepCopy

func (in *ResourceID) DeepCopy() *ResourceID

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceID.

func (*ResourceID) DeepCopyInto

func (in *ResourceID) DeepCopyInto(out *ResourceID)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceScope

type ResourceScope string
const (
	ClusterScoped   ResourceScope = "Cluster"
	NamespaceScoped ResourceScope = "Namespaced"
)

type ResourceSubTableDefinition added in v0.2.2

type ResourceSubTableDefinition struct {
	Name      string
	FieldPath string
	Columns   []ResourceColumnDefinition
}

func (*ResourceSubTableDefinition) DeepCopy added in v0.2.2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSubTableDefinition.

func (*ResourceSubTableDefinition) DeepCopyInto added in v0.2.2

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SubTable added in v0.2.2

type SubTable struct {
	Name              string
	ColumnDefinitions []ResourceColumnDefinition
	Rows              []TableRow
}

func (*SubTable) DeepCopy added in v0.2.2

func (in *SubTable) DeepCopy() *SubTable

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubTable.

func (*SubTable) DeepCopyInto added in v0.2.2

func (in *SubTable) DeepCopyInto(out *SubTable)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Table added in v0.2.2

type Table struct {
	metav1.TypeMeta
	metav1.ListMeta
	ColumnDefinitions []ResourceColumnDefinition
	Rows              []TableRow

	SubTables []SubTable
}

func (*Table) DeepCopy added in v0.2.2

func (in *Table) DeepCopy() *Table

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Table.

func (*Table) DeepCopyInto added in v0.2.2

func (in *Table) DeepCopyInto(out *Table)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TableOptions added in v0.2.2

type TableOptions struct {
	metav1.TypeMeta
	NoHeaders     bool
	IncludeObject IncludeObjectPolicy
}

func (*TableOptions) DeepCopy added in v0.2.2

func (in *TableOptions) DeepCopy() *TableOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableOptions.

func (*TableOptions) DeepCopyInto added in v0.2.2

func (in *TableOptions) DeepCopyInto(out *TableOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TableRow added in v0.2.2

type TableRow struct {
	Cells []interface{}
}

func (*TableRow) DeepCopy added in v0.2.2

func (in *TableRow) DeepCopy() *TableRow

func (*TableRow) DeepCopyInto added in v0.2.2

func (in *TableRow) DeepCopyInto(out *TableRow)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
+groupName=meta.appscode.com Package v1 contains API types that are common to all versions.
+groupName=meta.appscode.com Package v1 contains API types that are common to all versions.

Jump to

Keyboard shortcuts

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