v1alpha1

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains managed resources for GCP dns services such as DnsRecords. +kubebuilder:object:generate=true +groupName=dns.gcp.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "dns.gcp.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	ResourceRecordSetKind             = reflect.TypeOf(ResourceRecordSet{}).Name()
	ResourceRecordSetGroupKind        = schema.GroupKind{Group: Group, Kind: ResourceRecordSetKind}.String()
	ResourceRecordSetKindAPIVersion   = ResourceRecordSetKind + "." + SchemeGroupVersion.String()
	ResourceRecordSetGroupVersionKind = SchemeGroupVersion.WithKind(ResourceRecordSetKind)
)

ResourceRecordSet type metadata.

View Source
var (
	PolicyKind             = reflect.TypeOf(Policy{}).Name()
	PolicyGroupKind        = schema.GroupKind{Group: Group, Kind: PolicyKind}.String()
	PolicyKindAPIVersion   = PolicyKind + "." + SchemeGroupVersion.String()
	PolicyGroupVersionKind = SchemeGroupVersion.WithKind(PolicyKind)
)

Policy type metadata for DNS

Functions

This section is empty.

Types

type Policy

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

	Spec   PolicySpec   `json:"spec"`
	Status PolicyStatus `json:"status,omitempty"`
}

A Policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="DNS NAME",type="string",JSONPath=".status.atProvider.name" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}

func (*Policy) DeepCopy

func (in *Policy) DeepCopy() *Policy

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

func (*Policy) DeepCopyInto

func (in *Policy) DeepCopyInto(out *Policy)

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

func (*Policy) DeepCopyObject

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

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

func (*Policy) GetCondition

func (mg *Policy) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Policy.

func (*Policy) GetDeletionPolicy

func (mg *Policy) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Policy.

func (*Policy) GetProviderConfigReference

func (mg *Policy) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Policy.

func (*Policy) GetProviderReference

func (mg *Policy) GetProviderReference() *xpv1.Reference

GetProviderReference of this Policy. Deprecated: Use GetProviderConfigReference.

func (*Policy) GetPublishConnectionDetailsTo

func (mg *Policy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Policy.

func (*Policy) GetWriteConnectionSecretToReference

func (mg *Policy) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Policy.

func (*Policy) SetConditions

func (mg *Policy) SetConditions(c ...xpv1.Condition)

SetConditions of this Policy.

func (*Policy) SetDeletionPolicy

func (mg *Policy) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Policy.

func (*Policy) SetProviderConfigReference

func (mg *Policy) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Policy.

func (*Policy) SetProviderReference

func (mg *Policy) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Policy. Deprecated: Use SetProviderConfigReference.

func (*Policy) SetPublishConnectionDetailsTo

func (mg *Policy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Policy.

func (*Policy) SetWriteConnectionSecretToReference

func (mg *Policy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Policy.

type PolicyAlternativeNameServerConfig

type PolicyAlternativeNameServerConfig struct {

	// TargetNameServers: Sets an alternative name server for the associated
	// networks. When specified, all DNS queries are forwarded to a name
	// server that you choose. Names such as .internal are not available
	// when an alternative name server is specified.
	TargetNameServers []PolicyAlternativeNameServerConfigTargetNameServer `json:"targetNameServers"`
}

The PolicyAlternativeNameServerConfig Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose.

func (*PolicyAlternativeNameServerConfig) DeepCopy

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

func (*PolicyAlternativeNameServerConfig) DeepCopyInto

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

type PolicyAlternativeNameServerConfigTargetNameServer

type PolicyAlternativeNameServerConfigTargetNameServer struct {

	// ForwardingPath: Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on  address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud
	// DNS always sends queries through the VPC network for this target. Possible values:
	// "default" - Cloud DNS makes forwarding decision based on IP address ranges; that is, RFC1918 addresses forward to the target through the VPC and non-RFC1918 addresses forward to the target through the internet
	// "private" - Cloud DNS always forwards to this target through the VPC.
	ForwardingPath *string `json:"forwardingPath,omitempty"`

	// Ipv4Address: IPv4 address to forward to.
	Ipv4Address string `json:"ipv4Address"`
}

A PolicyAlternativeNameServerConfigTargetNameServer has the below fields.

func (*PolicyAlternativeNameServerConfigTargetNameServer) DeepCopy

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

func (*PolicyAlternativeNameServerConfigTargetNameServer) DeepCopyInto

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

type PolicyList

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

The PolicyList contains a list of DNSPolicy

func (*PolicyList) DeepCopy

func (in *PolicyList) DeepCopy() *PolicyList

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

func (*PolicyList) DeepCopyInto

func (in *PolicyList) DeepCopyInto(out *PolicyList)

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

func (*PolicyList) DeepCopyObject

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

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

func (*PolicyList) GetItems

func (l *PolicyList) GetItems() []resource.Managed

GetItems of this PolicyList.

type PolicyNetwork

type PolicyNetwork struct {

	// NetworkUrl: The fully qualified URL of the VPC network to bind to.
	// +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-gcp/apis/compute/v1beta1.NetworkURL()
	NetworkURL string `json:"networkUrl"`
}

A PolicyNetwork struct has the field NetworkURL

func (*PolicyNetwork) DeepCopy

func (in *PolicyNetwork) DeepCopy() *PolicyNetwork

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

func (*PolicyNetwork) DeepCopyInto

func (in *PolicyNetwork) DeepCopyInto(out *PolicyNetwork)

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

type PolicyObservation

type PolicyObservation struct {

	// Id: Unique identifier for the resource; defined by the server (output only).
	ID *uint64 `json:"id,omitempty"`
}

The PolicyObservation is used to show the observed state of the Policy

func (*PolicyObservation) DeepCopy

func (in *PolicyObservation) DeepCopy() *PolicyObservation

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

func (*PolicyObservation) DeepCopyInto

func (in *PolicyObservation) DeepCopyInto(out *PolicyObservation)

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

type PolicyParameters

type PolicyParameters struct {

	// AlternativeNameServerConfig: Sets an alternative name server for the associated networks.
	// When specified, all DNS queries are forwarded to a name server that you choose.
	// Names such as .internal are not available when an alternative name server is specified.
	// +optional
	AlternativeNameServerConfig *PolicyAlternativeNameServerConfig `json:"alternativeNameServerConfig,omitempty"`

	// Description: A mutable string of at most 1024 characters associated with this resource for the user's convenience.
	// Has no effect on the policy's function.
	// +optional
	Description string `json:"description"`

	// EnableInboundForwarding: Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections.
	// When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
	// +optional
	EnableInboundForwarding *bool `json:"enableInboundForwarding,omitempty"`

	// EnableLogging: Controls whether logging is enabled for the networks bound to this policy.
	// Defaults to no logging if not set.
	// +optional
	EnableLogging *bool `json:"enableLogging,omitempty"`

	// Networks: List of network names specifying networks to which this policy is applied.
	// +optional
	Networks *[]PolicyNetwork `json:"networks,omitempty"`
}

The PolicyParameters define the desired state of a Policy

func (*PolicyParameters) DeepCopy

func (in *PolicyParameters) DeepCopy() *PolicyParameters

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

func (*PolicyParameters) DeepCopyInto

func (in *PolicyParameters) DeepCopyInto(out *PolicyParameters)

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

type PolicySpec

type PolicySpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       PolicyParameters `json:"forProvider"`
}

The PolicySpec defines the desired state of a DNSPolicy.

func (*PolicySpec) DeepCopy

func (in *PolicySpec) DeepCopy() *PolicySpec

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

func (*PolicySpec) DeepCopyInto

func (in *PolicySpec) DeepCopyInto(out *PolicySpec)

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

type PolicyStatus

type PolicyStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          PolicyObservation `json:"atProvider,omitempty"`
}

The PolicyStatus represents the observed state of a DNSPolicy.

func (*PolicyStatus) DeepCopy

func (in *PolicyStatus) DeepCopy() *PolicyStatus

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

func (*PolicyStatus) DeepCopyInto

func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)

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

type ResourceRecordSet

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

	Spec   ResourceRecordSetSpec   `json:"spec"`
	Status ResourceRecordSetStatus `json:"status,omitempty"`
}

ResourceRecordSet is a managed resource that represents a Resource Record Set in Cloud DNS +kubebuilder:subresource:status +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="DNS NAME",type="string",JSONPath=".status.atProvider.name" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp},shortName=rrs

func (*ResourceRecordSet) DeepCopy

func (in *ResourceRecordSet) DeepCopy() *ResourceRecordSet

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

func (*ResourceRecordSet) DeepCopyInto

func (in *ResourceRecordSet) DeepCopyInto(out *ResourceRecordSet)

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

func (*ResourceRecordSet) DeepCopyObject

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

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

func (*ResourceRecordSet) GetCondition

func (mg *ResourceRecordSet) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this ResourceRecordSet.

func (*ResourceRecordSet) GetDeletionPolicy

func (mg *ResourceRecordSet) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this ResourceRecordSet.

func (*ResourceRecordSet) GetProviderConfigReference

func (mg *ResourceRecordSet) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this ResourceRecordSet.

func (*ResourceRecordSet) GetProviderReference

func (mg *ResourceRecordSet) GetProviderReference() *xpv1.Reference

GetProviderReference of this ResourceRecordSet. Deprecated: Use GetProviderConfigReference.

func (*ResourceRecordSet) GetPublishConnectionDetailsTo

func (mg *ResourceRecordSet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this ResourceRecordSet.

func (*ResourceRecordSet) GetWriteConnectionSecretToReference

func (mg *ResourceRecordSet) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this ResourceRecordSet.

func (*ResourceRecordSet) SetConditions

func (mg *ResourceRecordSet) SetConditions(c ...xpv1.Condition)

SetConditions of this ResourceRecordSet.

func (*ResourceRecordSet) SetDeletionPolicy

func (mg *ResourceRecordSet) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this ResourceRecordSet.

func (*ResourceRecordSet) SetProviderConfigReference

func (mg *ResourceRecordSet) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this ResourceRecordSet.

func (*ResourceRecordSet) SetProviderReference

func (mg *ResourceRecordSet) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this ResourceRecordSet. Deprecated: Use SetProviderConfigReference.

func (*ResourceRecordSet) SetPublishConnectionDetailsTo

func (mg *ResourceRecordSet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this ResourceRecordSet.

func (*ResourceRecordSet) SetWriteConnectionSecretToReference

func (mg *ResourceRecordSet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this ResourceRecordSet.

type ResourceRecordSetList

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

ResourceRecordSetList contains a list of ResourceRecordSet

func (*ResourceRecordSetList) DeepCopy

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

func (*ResourceRecordSetList) DeepCopyInto

func (in *ResourceRecordSetList) DeepCopyInto(out *ResourceRecordSetList)

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

func (*ResourceRecordSetList) DeepCopyObject

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

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

func (*ResourceRecordSetList) GetItems

func (l *ResourceRecordSetList) GetItems() []resource.Managed

GetItems of this ResourceRecordSetList.

type ResourceRecordSetObservation

type ResourceRecordSetObservation struct{}

ResourceRecordSetObservation is used to show the observed state of the ResourceRecordSet

func (*ResourceRecordSetObservation) DeepCopy

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

func (*ResourceRecordSetObservation) DeepCopyInto

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

type ResourceRecordSetParameters

type ResourceRecordSetParameters struct {
	// Managed zone name that this ResourceRecordSet will be created in.
	ManagedZone string `json:"managedZone"`

	// The identifier of a supported record type.
	//
	// +immutable
	// +kubebuilder:validation:Enum=A;AAAA;CAA;CNAME;DNSKEY;DS;IPSECKEY;MX;NAPTR;NS;PTR;SPF;SRV;SSHFP;TLSA;TXT
	Type string `json:"type"`

	// Number of seconds that this ResourceRecordSet
	// can be cached by resolvers.
	TTL int64 `json:"ttl"`

	// List of ResourceRecord datas as defined in
	// RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
	RRDatas []string `json:"rrdatas"`

	// List of Signature ResourceRecord datas, as
	// defined in RFC 4034 (section 3.2).
	//
	// +optional
	SignatureRRDatas []string `json:"signatureRrdatas,omitempty"`
}

ResourceRecordSetParameters define the desired state of a ResourceRecordSet

func (*ResourceRecordSetParameters) DeepCopy

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

func (*ResourceRecordSetParameters) DeepCopyInto

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

type ResourceRecordSetSpec

type ResourceRecordSetSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       ResourceRecordSetParameters `json:"forProvider"`
}

ResourceRecordSetSpec defines the desired state of a ResourceRecordSet.

func (*ResourceRecordSetSpec) DeepCopy

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

func (*ResourceRecordSetSpec) DeepCopyInto

func (in *ResourceRecordSetSpec) DeepCopyInto(out *ResourceRecordSetSpec)

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

type ResourceRecordSetStatus

type ResourceRecordSetStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          ResourceRecordSetObservation `json:"atProvider,omitempty"`
}

ResourceRecordSetStatus represents the observed state of a ResourceRecordSet.

func (*ResourceRecordSetStatus) DeepCopy

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

func (*ResourceRecordSetStatus) DeepCopyInto

func (in *ResourceRecordSetStatus) DeepCopyInto(out *ResourceRecordSetStatus)

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