Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type BambooMetadata
- type BambooPlanRef
- type Compliance
- type PagerDutyEnvMetadata
- type PagerDutyIntegrationMetadata
- type PagerDutyIntegrations
- type PagerDutyMetadata
- type PagerDutyServiceMetadata
- type Service
- type ServiceList
- type ServiceMetadata
- type ServiceSpec
- type ServiceStatus
Constants ¶
const ( ServiceResourceSingular = "service" ServiceResourcePlural = "services" ServiceResourceVersion = "v1" ServiceResourceKind = "Service" ServiceListResourceKind = "ServiceList" ServiceResourceAPIVersion = creator.GroupName + "/" + ServiceResourceVersion ServiceResourceName = ServiceResourcePlural + "." + creator.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: creator.GroupName, Version: ServiceResourceVersion}
SchemeGroupVersion is group version used to register these objects.
var (
ServiceGvk = SchemeGroupVersion.WithKind(ServiceResourceKind)
)
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type BambooMetadata ¶
type BambooMetadata struct { Builds []BambooPlanRef `json:"builds,omitempty"` Deployments []BambooPlanRef `json:"deployments,omitempty"` }
+k8s:deepcopy-gen=true
func (*BambooMetadata) DeepCopy ¶
func (in *BambooMetadata) DeepCopy() *BambooMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BambooMetadata.
func (*BambooMetadata) DeepCopyInto ¶
func (in *BambooMetadata) DeepCopyInto(out *BambooMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BambooPlanRef ¶
type Compliance ¶
type Compliance struct {
PRGBControl *bool `json:"prgbControl,omitempty"`
}
+k8s:deepcopy-gen=true
func (*Compliance) DeepCopy ¶
func (in *Compliance) DeepCopy() *Compliance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Compliance.
func (*Compliance) DeepCopyInto ¶
func (in *Compliance) DeepCopyInto(out *Compliance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PagerDutyEnvMetadata ¶
type PagerDutyEnvMetadata struct { Main PagerDutyServiceMetadata `json:"main,omitempty"` LowPriority PagerDutyServiceMetadata `json:"lowPriority,omitempty"` }
type PagerDutyIntegrations ¶
type PagerDutyIntegrations struct { CloudWatch PagerDutyIntegrationMetadata `json:"cloudWatch,omitempty"` Generic PagerDutyIntegrationMetadata `json:"generic,omitempty"` Pingdom PagerDutyIntegrationMetadata `json:"pingdom,omitempty"` }
type PagerDutyMetadata ¶
type PagerDutyMetadata struct { Staging PagerDutyEnvMetadata `json:"staging,omitempty"` Production PagerDutyEnvMetadata `json:"production,omitempty"` }
type PagerDutyServiceMetadata ¶
type PagerDutyServiceMetadata struct { ServiceID string `json:"serviceID,omitempty"` PolicyID string `json:"policyID,omitempty"` Integrations PagerDutyIntegrations `json:"integrations,omitempty"` }
type Service ¶
type Service struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceSpec `json:"spec,omitempty"` Status ServiceStatus `json:"status,omitempty"` }
+genclient +genclient:nonNamespaced +genclient:noStatus +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Service) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceList ¶
type ServiceList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata,omitempty"` Items []Service `json:"items"` }
ServiceList is a list of Services. +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ServiceList) DeepCopy ¶
func (in *ServiceList) DeepCopy() *ServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceList.
func (*ServiceList) DeepCopyInto ¶
func (in *ServiceList) DeepCopyInto(out *ServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceList) DeepCopyObject ¶
func (in *ServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceMetadata ¶
type ServiceMetadata struct { PagerDuty *PagerDutyMetadata `json:"pagerDuty,omitempty"` Bamboo *BambooMetadata `json:"bamboo,omitempty"` }
+k8s:deepcopy-gen=true
func (*ServiceMetadata) DeepCopy ¶
func (in *ServiceMetadata) DeepCopy() *ServiceMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMetadata.
func (*ServiceMetadata) DeepCopyInto ¶
func (in *ServiceMetadata) DeepCopyInto(out *ServiceMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceSpec ¶
type ServiceSpec struct { BusinessUnit string `json:"businessUnit,omitempty"` ResourceOwner string `json:"resourceOwner,omitempty"` SSAMContainerName string `json:"ssamContainerName,omitempty"` PagerDutyServiceID string `json:"pagerDutyServiceID,omitempty"` LoggingID string `json:"loggingID,omitempty"` Metadata ServiceMetadata `json:"metadata,omitempty"` ResourceTags map[voyager.Tag]string `json:"tags,omitempty"` }
+k8s:deepcopy-gen=true
func (*ServiceSpec) DeepCopy ¶
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceSpec) EmailAddress ¶
func (ss *ServiceSpec) EmailAddress() string
EmailAddress gives the email address for the service
type ServiceStatus ¶
type ServiceStatus struct {
Compliance Compliance `json:"compliance,omitempty"`
}
+k8s:deepcopy-gen=true
func (*ServiceStatus) DeepCopy ¶
func (in *ServiceStatus) DeepCopy() *ServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus.
func (*ServiceStatus) DeepCopyInto ¶
func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.