v1

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 defines all of the versioned (v1) definitions of the Composition layer model. +groupName=composition.voyager.atl-paas.net

Index

Constants

View Source
const (
	ServiceDescriptorResourceSingular = "servicedescriptor"
	ServiceDescriptorResourcePlural   = "servicedescriptors"
	ServiceDescriptorResourceVersion  = "v1"
	ServiceDescriptorResourceKind     = "ServiceDescriptor"
	ServiceDescriptorResourceListKind = ServiceDescriptorResourceKind + "List"

	ServiceDescriptorResourceName = ServiceDescriptorResourcePlural + "." + composition.GroupName
)

Variables

View Source
var (
	// SchemeBuilder needs to be exported as `SchemeBuilder` so
	// the code-generation can find it.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is exposed for API installation
	AddToScheme = SchemeBuilder.AddToScheme
)

SchemeGroupVersion is group version used to register these objects.

View Source
var (
	ServiceDescriptorGVK = SchemeGroupVersion.WithKind(ServiceDescriptorResourceKind)
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

Types

type LocationStatus

type LocationStatus struct {
	DescriptorName      string              `json:"descriptorName"`
	DescriptorNamespace string              `json:"descriptorNamespace"`
	Conditions          []cond_v1.Condition `json:"conditions"`
	Location            voyager.Location    `json:"location"`
}

+k8s:deepcopy-gen=true

func (*LocationStatus) DeepCopy

func (in *LocationStatus) DeepCopy() *LocationStatus

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

func (*LocationStatus) DeepCopyInto

func (in *LocationStatus) DeepCopyInto(out *LocationStatus)

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

type Scope

type Scope string

type ServiceDescriptor

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

	Spec ServiceDescriptorSpec `json:"spec"`

	Status ServiceDescriptorStatus `json:"status,omitempty"`
}

ServiceDescriptor describes the architecture of a service +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ServiceDescriptor) DeepCopy

func (in *ServiceDescriptor) DeepCopy() *ServiceDescriptor

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

func (*ServiceDescriptor) DeepCopyInto

func (in *ServiceDescriptor) DeepCopyInto(out *ServiceDescriptor)

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

func (*ServiceDescriptor) DeepCopyObject

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

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

type ServiceDescriptorConfigSet

type ServiceDescriptorConfigSet struct {
	Scope Scope                  `json:"scope"`
	Vars  map[string]interface{} `json:"vars"`
}

ServiceDescriptorConfigSet is a map of variable names & values +k8s:deepcopy-gen=true

func (*ServiceDescriptorConfigSet) DeepCopy

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

func (*ServiceDescriptorConfigSet) DeepCopyInto

DeepCopyInto handles the copying of the JSON attributes specified as interface{}

type ServiceDescriptorList

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

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

ServiceDescriptorList is a list of ServiceDescriptors. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ServiceDescriptorList) DeepCopy

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

func (*ServiceDescriptorList) DeepCopyInto

func (in *ServiceDescriptorList) DeepCopyInto(out *ServiceDescriptorList)

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

func (*ServiceDescriptorList) DeepCopyObject

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

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

type ServiceDescriptorLocation

type ServiceDescriptorLocation struct {
	Name    ServiceDescriptorLocationName `json:"name"`
	Account voyager.Account               `json:"account,omitempty"`
	Region  voyager.Region                `json:"region"`
	EnvType voyager.EnvType               `json:"envType"`
	Label   voyager.Label                 `json:"label,omitempty"`
}

ServiceDescriptorLocation describes a distinct voyager location to deploy to, with a user-supplied name for that location +k8s:deepcopy-gen=true

func (*ServiceDescriptorLocation) DeepCopy

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

func (*ServiceDescriptorLocation) DeepCopyInto

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

func (ServiceDescriptorLocation) VoyagerLocation

func (l ServiceDescriptorLocation) VoyagerLocation() voyager.Location

type ServiceDescriptorLocationName

type ServiceDescriptorLocationName string

type ServiceDescriptorResource

type ServiceDescriptorResource struct {
	Name voyager.ResourceName `json:"name,omitempty"`
	Type voyager.ResourceType `json:"type,omitempty"`

	DependsOn []ServiceDescriptorResourceDependency `json:"dependsOn,omitempty"`

	// Specification of the desired behavior of the Resource.
	Spec *runtime.RawExtension `json:"spec,omitempty"`
}

ServiceDescriptorResource describes the a voyager resource +k8s:deepcopy-gen=true

func (*ServiceDescriptorResource) DeepCopy

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

func (*ServiceDescriptorResource) DeepCopyInto

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

type ServiceDescriptorResourceDependency

type ServiceDescriptorResourceDependency struct {
	Name       voyager.ResourceName   `json:"name"`
	Attributes map[string]interface{} `json:"attributes,omitempty"`
}

ServiceDescriptorResourceDependency describes the dependency of one resources on another, with optional attributes +k8s:deepcopy-gen=true

func (*ServiceDescriptorResourceDependency) DeepCopy

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

func (*ServiceDescriptorResourceDependency) DeepCopyInto

DeepCopyInto handle the interface{} deepcopy (which k8s can't autogen, since it doesn't know it's JSON).

func (*ServiceDescriptorResourceDependency) UnmarshalJSON

func (in *ServiceDescriptorResourceDependency) UnmarshalJSON(data []byte) error

UnmarshalJSON for ServiceDescriptorResourceDependency handles them being either a single resource name, or an object containing name and attributes.

type ServiceDescriptorResourceGroup

type ServiceDescriptorResourceGroup struct {
	Name      ServiceDescriptorResourceGroupName `json:"name"`
	Locations []ServiceDescriptorLocationName    `json:"locations"`
	Resources []ServiceDescriptorResource        `json:"resources"`
}

ServiceDescriptorResourceGroup describes a set of resources that exist in one or more locations The Locations map back to the locations in the top-level of the Spec +k8s:deepcopy-gen=true

func (*ServiceDescriptorResourceGroup) DeepCopy

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

func (*ServiceDescriptorResourceGroup) DeepCopyInto

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

type ServiceDescriptorResourceGroupName

type ServiceDescriptorResourceGroupName string

type ServiceDescriptorSpec

type ServiceDescriptorSpec struct {
	Locations      []ServiceDescriptorLocation      `json:"locations"`
	Config         []ServiceDescriptorConfigSet     `json:"config,omitempty"`
	ResourceGroups []ServiceDescriptorResourceGroup `json:"resourceGroups,omitempty"`
	Version        string                           `json:"version"`
}

ServiceDescriptorSpec is the top-level definition for a service's architecture +k8s:deepcopy-gen=true

func (*ServiceDescriptorSpec) DeepCopy

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

func (*ServiceDescriptorSpec) DeepCopyInto

func (in *ServiceDescriptorSpec) DeepCopyInto(out *ServiceDescriptorSpec)

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

type ServiceDescriptorStatus

type ServiceDescriptorStatus struct {
	Conditions       []cond_v1.Condition `json:"conditions,omitempty"`
	LocationStatuses []LocationStatus    `json:"locationStatuses"`
}

+k8s:deepcopy-gen=true

func (*ServiceDescriptorStatus) DeepCopy

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

func (*ServiceDescriptorStatus) DeepCopyInto

func (in *ServiceDescriptorStatus) DeepCopyInto(out *ServiceDescriptorStatus)

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

Jump to

Keyboard shortcuts

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