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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceResourceSingular = "service"
	ServiceResourcePlural   = "services"
	ServiceResourceVersion  = "v1"
	ServiceResourceKind     = "Service"
	ServiceListResourceKind = "ServiceList"

	ServiceResourceAPIVersion = creator.GroupName + "/" + ServiceResourceVersion

	ServiceResourceName = ServiceResourcePlural + "." + creator.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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: creator.GroupName, Version: ServiceResourceVersion}

SchemeGroupVersion is group version used to register these objects.

View Source
var (
	ServiceGvk = SchemeGroupVersion.WithKind(ServiceResourceKind)
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

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 BambooPlanRef struct {
	Server string `json:"server"`
	Plan   string `json:"plan"`
}

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 PagerDutyIntegrationMetadata

type PagerDutyIntegrationMetadata struct {
	IntegrationID  string `json:"integrationID,omitempty"`
	IntegrationKey string `json:"integrationKey,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

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

func (*Service) DeepCopyObject

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

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.

Jump to

Keyboard shortcuts

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