Documentation ¶
Overview ¶
Package v1 defines all of the versioned (v1) definitions of the Composition layer model. +groupName=composition.voyager.atl-paas.net
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- type LocationStatus
- type Scope
- type ServiceDescriptor
- type ServiceDescriptorConfigSet
- type ServiceDescriptorList
- type ServiceDescriptorLocation
- type ServiceDescriptorLocationName
- type ServiceDescriptorResource
- type ServiceDescriptorResourceDependency
- type ServiceDescriptorResourceGroup
- type ServiceDescriptorResourceGroupName
- type ServiceDescriptorSpec
- type ServiceDescriptorStatus
Constants ¶
const ( ServiceDescriptorResourceSingular = "servicedescriptor" ServiceDescriptorResourcePlural = "servicedescriptors" ServiceDescriptorResourceVersion = "v1" ServiceDescriptorResourceKind = "ServiceDescriptor" ServiceDescriptorResourceListKind = ServiceDescriptorResourceKind + "List" ServiceDescriptorResourceName = ServiceDescriptorResourcePlural + "." + composition.GroupName )
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: composition.GroupName, Version: ServiceDescriptorResourceVersion}
SchemeGroupVersion is group version used to register these objects.
var (
ServiceDescriptorGVK = SchemeGroupVersion.WithKind(ServiceDescriptorResourceKind)
)
Functions ¶
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 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 ¶
func (in *ServiceDescriptorConfigSet) DeepCopy() *ServiceDescriptorConfigSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDescriptorConfigSet.
func (*ServiceDescriptorConfigSet) DeepCopyInto ¶
func (in *ServiceDescriptorConfigSet) DeepCopyInto(out *ServiceDescriptorConfigSet)
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 ¶
func (in *ServiceDescriptorList) DeepCopy() *ServiceDescriptorList
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 ¶
func (in *ServiceDescriptorLocation) DeepCopy() *ServiceDescriptorLocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDescriptorLocation.
func (*ServiceDescriptorLocation) DeepCopyInto ¶
func (in *ServiceDescriptorLocation) DeepCopyInto(out *ServiceDescriptorLocation)
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 ¶
func (in *ServiceDescriptorResource) DeepCopy() *ServiceDescriptorResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDescriptorResource.
func (*ServiceDescriptorResource) DeepCopyInto ¶
func (in *ServiceDescriptorResource) DeepCopyInto(out *ServiceDescriptorResource)
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 ¶
func (in *ServiceDescriptorResourceDependency) DeepCopy() *ServiceDescriptorResourceDependency
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDescriptorResourceDependency.
func (*ServiceDescriptorResourceDependency) DeepCopyInto ¶
func (in *ServiceDescriptorResourceDependency) DeepCopyInto(out *ServiceDescriptorResourceDependency)
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 ¶
func (in *ServiceDescriptorResourceGroup) DeepCopy() *ServiceDescriptorResourceGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceDescriptorResourceGroup.
func (*ServiceDescriptorResourceGroup) DeepCopyInto ¶
func (in *ServiceDescriptorResourceGroup) DeepCopyInto(out *ServiceDescriptorResourceGroup)
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 ¶
func (in *ServiceDescriptorSpec) DeepCopy() *ServiceDescriptorSpec
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 ¶
func (in *ServiceDescriptorStatus) DeepCopy() *ServiceDescriptorStatus
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.