v1beta1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "delivery.cafebazaar.cloud"
View Source
const GroupVersion = "v1beta1"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}

Functions

This section is empty.

Types

type DomainZone

type DomainZone struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DomainZoneSpec   `json:"spec,omitempty"`
	Status DomainZoneStatus `json:"status,omitempty"`
}

DomainZone is the Schema for the domainzones API

func (*DomainZone) DeepCopy

func (in *DomainZone) DeepCopy() *DomainZone

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

func (*DomainZone) DeepCopyInto

func (in *DomainZone) DeepCopyInto(out *DomainZone)

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

func (*DomainZone) DeepCopyObject

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

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

type DomainZoneList

type DomainZoneList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DomainZone `json:"items"`
}

DomainZoneList contains a list of DomainZone

func (*DomainZoneList) DeepCopy

func (in *DomainZoneList) DeepCopy() *DomainZoneList

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

func (*DomainZoneList) DeepCopyInto

func (in *DomainZoneList) DeepCopyInto(out *DomainZoneList)

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

func (*DomainZoneList) DeepCopyObject

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

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

type DomainZoneSpec

type DomainZoneSpec struct {
	Wsid              string     `json:"wsid,omitempty"`
	Origin            string     `json:"origin" validate:"hostname_rfc1123"`
	TTL               int        `json:"ttl,omitempty" validate:"min=0"`
	Email             string     `json:"email,omitempty" validate:"email"`
	DedicatedNSDomain string     `json:"NSDomain,omitempty" validate:"hostname_rfc1123"` // deprecated
	Nameservers       []string   `json:"nameservers,omitempty" validate:"min=2,dive,hostname_rfc1123"`
	Records           RecordsMap `json:"records,omitempty" validate:"max=1000,dive,keys,recordname|eq=@|eq=*,endkeys,max=100,dive"`
}

DomainZoneSpec defines the desired state of DomainZone

func (*DomainZoneSpec) DeepCopy

func (in *DomainZoneSpec) DeepCopy() *DomainZoneSpec

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

func (*DomainZoneSpec) DeepCopyInto

func (in *DomainZoneSpec) DeepCopyInto(out *DomainZoneSpec)

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

type DomainZoneStatus

type DomainZoneStatus struct {
	Status string `json:"status"`
}

DomainZoneStatus defines the observed state of DomainZone

func (*DomainZoneStatus) DeepCopy

func (in *DomainZoneStatus) DeepCopy() *DomainZoneStatus

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

func (*DomainZoneStatus) DeepCopyInto

func (in *DomainZoneStatus) DeepCopyInto(out *DomainZoneStatus)

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

type GeoLocation

type GeoLocation struct {
	ContinentCode string `json:"continent"`
	CountryCode   string `json:"country"`
}

GeoLocation ...

func (*GeoLocation) DeepCopy

func (in *GeoLocation) DeepCopy() *GeoLocation

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

func (*GeoLocation) DeepCopyInto

func (in *GeoLocation) DeepCopyInto(out *GeoLocation)

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

type HealthCheck

type HealthCheck struct {
	Enabled  bool   `json:"enabled"`
	Protocol string `json:"protocol" validate:"oneof=tcp http https"`
	Port     int    `json:"port" validate:"gte=1,lte=65535"`
	Host     string `json:"host" validate:"omitempty,hostname_rfc1123"`
	Path     string `json:"path" validate:"omitempty,lte=128"`
}

HealthCheck ...

func (*HealthCheck) DeepCopy

func (in *HealthCheck) DeepCopy() *HealthCheck

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

func (*HealthCheck) DeepCopyInto

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

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

type MX

type MX struct {
	Priority int    `json:"priority" validate:"min=0"`
	Host     string `json:"host" validate:"hostname_rfc1123|ip"`
}

MX ...

func (*MX) DeepCopy

func (in *MX) DeepCopy() *MX

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

func (*MX) DeepCopyInto

func (in *MX) DeepCopyInto(out *MX)

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

type Record

type Record struct {
	Name          string `json:"-"` // retrieved from DomainZoneSpec.Records map and set in Zone.FindRecords on runtime
	SpecifiedType string `json:"type,omitempty"`

	TTL         int           `json:"ttl,omitempty" validate:"min=0"`
	Weight      *int          `json:"weight,omitempty" validate:"omitempty,min=0"`
	GeoLocation []GeoLocation `json:"geo,omitempty" validate:"max=20,dive"`
	HealthCheck *HealthCheck  `json:"hc,omitempty" validate:"omitempty,dive"`

	MX           *MX      `json:"MX,omitempty" validate:"omitempty,dive"`
	A            []string `json:"A,omitempty" validate:"omitempty,max=100,dive,ipv4"`
	AFallback    []string `json:"AFallback,omitempty" validate:"omitempty,max=100,dive,ipv4"`
	AAAA         []string `json:"AAAA,omitempty" validate:"omitempty,max=100,dive,ipv6"`
	AAAAFallback []string `json:"AAAAFallback,omitempty" validate:"omitempty,max=100,dive,ipv6"`
	CNAME        string   `json:"CNAME,omitempty" validate:"omitempty,hostname_rfc1123"`
	TXT          string   `json:"TXT,omitempty" validate:"omitempty,lt=2048"`
	SPF          string   `json:"SPF,omitempty" validate:"omitempty,lt=2048"`
	NS           []string `json:"NS,omitempty" validate:"omitempty,max=100,dive,hostname_rfc1123"`
	PTR          string   `json:"PTR,omitempty" validate:"omitempty,hostname_rfc1123"`
	SRV          *SRV     `json:"SRV,omitempty" validate:"omitempty,dive"`
	URI          *URI     `json:"URI,omitempty" validate:"omitempty,dive"`
	ALIAS        string   `json:"ALIAS,omitempty" validate:"omitempty,hostname_rfc1123"`
}

Record ..

func (*Record) DeepCopy

func (in *Record) DeepCopy() *Record

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

func (*Record) DeepCopyInto

func (in *Record) DeepCopyInto(out *Record)

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

func (*Record) Type

func (r *Record) Type() string

Type returns type of the record TODO(ali) SPF, TLSA, CAA, SMIME?, LOC, SSHP

type RecordList

type RecordList []Record

RecordList ...

func (RecordList) DeepCopy

func (in RecordList) DeepCopy() RecordList

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

func (RecordList) DeepCopyInto

func (in RecordList) DeepCopyInto(out *RecordList)

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

type RecordsMap

type RecordsMap map[string]RecordList

RecordsMap ...

func (RecordsMap) DeepCopy

func (in RecordsMap) DeepCopy() RecordsMap

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

func (RecordsMap) DeepCopyInto

func (in RecordsMap) DeepCopyInto(out *RecordsMap)

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

type SRV

type SRV struct {
	Priority int    `json:"priority" validate:"min=0"`
	Weight   int    `json:"weight" validate:"min=0"`
	Port     int    `json:"port" validate:"min=1,max=65535"`
	Target   string `json:"target" validate:"lte=255"`
}

SRV ...

func (*SRV) DeepCopy

func (in *SRV) DeepCopy() *SRV

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

func (*SRV) DeepCopyInto

func (in *SRV) DeepCopyInto(out *SRV)

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

type URI

type URI struct {
	Priority int    `json:"priority" validate:"min=0"`
	Weight   int    `json:"weight" validate:"min=0"`
	Target   string `json:"target" validate:"uri"`
}

URI ...

func (*URI) DeepCopy

func (in *URI) DeepCopy() *URI

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

func (*URI) DeepCopyInto

func (in *URI) DeepCopyInto(out *URI)

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