Documentation ¶
Overview ¶
Package primitives contains data types for interacting with Manifold.
Index ¶
Constants ¶
const ( CRDGroup = "manifold.co" CRDVersion = "v1" CRDProjectsPlural = "projects" CRDProjectsName = "Project" CRDResourcesPlural = "resources" CRDResourcesName = "Resource" )
Constants for CRD
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialSpec ¶
type CredentialSpec struct { Key string `json:"key"` Name string `json:"name,omitempty"` Default string `json:"default,omitempty"` Encoding string `json:"encoding,omitempty"` }
CredentialSpec represents the specification that is required to filter out specific credentials in the Resource spec.
func (*CredentialSpec) DeepCopy ¶
func (in *CredentialSpec) DeepCopy() *CredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialSpec.
func (*CredentialSpec) DeepCopyInto ¶
func (in *CredentialSpec) DeepCopyInto(out *CredentialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CredentialSpec) ManifoldPrimitive ¶ added in v0.0.4
func (cs *CredentialSpec) ManifoldPrimitive() *primitives.Credential
ManifoldPrimitive converts the CredentialSpec to a manifold project integration primitive.
type CredentialValue ¶
type CredentialValue struct { CredentialSpec `json:",inline"` Value string `json:"value"` }
CredentialValue is a simple representation of the actual key/value of a Credential.
func (*CredentialValue) DeepCopy ¶
func (in *CredentialValue) DeepCopy() *CredentialValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialValue.
func (*CredentialValue) DeepCopyInto ¶
func (in *CredentialValue) DeepCopyInto(out *CredentialValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec *ProjectSpec `json:"spec"` }
Project is the manifest representation of a manifold.co Project CRD. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Project) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectList ¶
type ProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []*Project `json:"items"` }
ProjectList represents a list of available ProjectConfigurations in the cluster. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) DeepCopyObject ¶
func (in *ProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectSpec ¶
type ProjectSpec struct { Name string `json:"project,name"` Team string `json:"team,omitempty"` Type string `json:"type,omitempty"` Resources []*ResourceSpec `json:"resources,omitempty"` }
ProjectSpec is the specification that is required to build a valid Project manifest.
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectSpec) ManifoldPrimitive ¶ added in v0.0.4
func (ps *ProjectSpec) ManifoldPrimitive() *primitives.Project
ManifoldPrimitive converts the ProjectSpec to a manifold project integration primitive.
func (*ProjectSpec) SecretType ¶ added in v0.1.0
func (ps *ProjectSpec) SecretType() v1.SecretType
SecretType returns the type of secret that should be generated for this spec.
func (*ProjectSpec) String ¶ added in v0.1.3
func (ps *ProjectSpec) String() string
String returns a string representation of the spec
type Resource ¶
type Resource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec *ResourceSpec `json:"spec"` }
Resource is the manifest representation of a manifold.co Resource CRD. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Resource) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceList ¶
type ResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []*Resource `json:"items"` }
ResourceList represents a list of available ResourceConfigurations in the cluster. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ResourceList) DeepCopy ¶
func (in *ResourceList) DeepCopy() *ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (*ResourceList) DeepCopyInto ¶
func (in *ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceList) DeepCopyObject ¶
func (in *ResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceSpec ¶
type ResourceSpec struct { Name string `json:"resource,name"` Team string `json:"team,omitempty"` Type string `json:"type,omitempty"` Credentials []*CredentialSpec `json:"credentials,omitempty"` }
ResourceSpec is the specification that is required to build a valid Resource manifest.
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSpec) ManifoldPrimitive ¶ added in v0.0.4
func (rs *ResourceSpec) ManifoldPrimitive() *primitives.Resource
ManifoldPrimitive converts the ResourceSpec to a manifold project integration primitive.
func (*ResourceSpec) SecretType ¶ added in v0.1.0
func (rs *ResourceSpec) SecretType() v1.SecretType
SecretType returns the type of secret that should be generated for this spec.