v1alpha1

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the "v1alpha1" version of the "cloudsql.travelaudience.com" API.

Index

Constants

View Source
const (

	// Any represents an arbitrary choice of a value.
	Any = "Any"
	// False represents the "false" boolean value.
	False = "false"
	// True represents the "true" boolean value.
	True = "true"
)
View Source
const (
	// PostgresqlInstanceSpecAvailabilityTypeRegional represents the "REGIONAL" availability type for CSQLP instances.
	PostgresqlInstanceSpecAvailabilityTypeRegional = PostgresqlInstanceSpecAvailabilityType("Regional")
	// PostgresqlInstanceSpecAvailabilityTypeZonal represents the "ZONAL" availability type for CSQLP instances.
	PostgresqlInstanceSpecAvailabilityTypeZonal = PostgresqlInstanceSpecAvailabilityType("Zonal")
)
View Source
const (
	// PostgresqlInstanceSpecMaintenanceDayAny represents an arbitrary choice of a day of the week for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDayAny = PostgresqlInstanceSpecMaintenanceDay(Any)
	// PostgresqlInstanceSpecMaintenanceDayMonday represents the choice of Mondays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDayMonday = PostgresqlInstanceSpecMaintenanceDay("Monday")
	// PostgresqlInstanceSpecMaintenanceDayTuesday represents the choice of Tuesdays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDayTuesday = PostgresqlInstanceSpecMaintenanceDay("Tuesday")
	// PostgresqlInstanceSpecMaintenanceDayWednesday represents the choice of Wednesdays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDayWednesday = PostgresqlInstanceSpecMaintenanceDay("Wednesday")
	// PostgresqlInstanceSpecMaintenanceDayThursday represents the choice of Thursdays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDayThursday = PostgresqlInstanceSpecMaintenanceDay("Thursday")
	// PostgresqlInstanceSpecMaintenanceDayFriday represents the choice of Fridays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDayFriday = PostgresqlInstanceSpecMaintenanceDay("Friday")
	// PostgresqlInstanceSpecMaintenanceDaySaturday represents the choice of Saturdays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDaySaturday = PostgresqlInstanceSpecMaintenanceDay("Saturday")
	// PostgresqlInstanceSpecMaintenanceDaySunday represents the choice of Sundays for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceDaySunday = PostgresqlInstanceSpecMaintenanceDay("Sunday")
)
View Source
const (
	// PostgresqlInstanceSpecResourceDiskTypeHDD represents the "HDD" disk type for CSQLP instances.
	PostgresqlInstanceSpecResourceDiskTypeHDD = PostgresqlInstanceSpecResourcesDiskType("HDD")
	// PostgresqlInstanceSpecResourceDiskTypeSSD represents the "SSD" disk type for CSQLP instances.
	PostgresqlInstanceSpecResourceDiskTypeSSD = PostgresqlInstanceSpecResourcesDiskType("SSD")
)
View Source
const (
	// PostgresqlInstanceStatusConditionTypeCreated indicates that the CSQLP instance represented by a given PostgresqlInstance resource has been created.
	PostgresqlInstanceStatusConditionTypeCreated = PostgresqlInstanceStatusConditionType("Created")
	// PostgresqlInstanceStatusConditionTypeReady indicates that the CSQLP instance represented by a given PostgresqlInstance resource is in a ready state.
	PostgresqlInstanceStatusConditionTypeReady = PostgresqlInstanceStatusConditionType("Ready")
	// PostgresqlInstanceStatusConditionTypeUpToDate indicates that the settings for the CSQLP instance represented by a given PostgresqlInstance resource are up-to-date.
	PostgresqlInstanceStatusConditionTypeUpToDate = PostgresqlInstanceStatusConditionType("UpToDate")
)
View Source
const (
	// PostgresqlInstanceSpecLocationZoneAny represents an arbitrary choice of a zone for a CSQLP instance.
	PostgresqlInstanceSpecLocationZoneAny = PostgresqlInstanceSpecLocationZone(Any)
)
View Source
const (
	// PostgresqlInstanceSpecMaintenanceHourAny represents an arbitrary choice of an hour of the day for periodic maintenance of a CSQLP instance.
	PostgresqlInstanceSpecMaintenanceHourAny = Any
)
View Source
const (
	// PostgresqlInstanceSpecVersion96 represents the "POSTGRES_9_6" version of CSQLP instances.
	PostgresqlInstanceSpecVersion96 = PostgresqlInstanceSpecVersion("9.6")
)

Variables

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

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type PostgresqlInstancSpecBackupsDaily

type PostgresqlInstancSpecBackupsDaily struct {
	// Enabled specifies whether daily backups are enabled for the CSQLP instance.
	// +optional
	Enabled *bool `json:"enabled"`
	// StartTime is the start time (in UTC) for the daily backups of the CSQLP instance, in 24-hour format.
	// +optional
	StartTime *string `json:"startTime"`
}

PostgresqlInstancSpecBackupsDaily allows for customizing the daily backup strategy for a CSQLP instance.

type PostgresqlInstance

type PostgresqlInstance struct {
	// Standard type metadata.
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata.
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec represents the specification of the CSQLP instance.
	Spec PostgresqlInstanceSpec `json:"spec"`
	// Status represents the status of the CSQLP instance.
	Status PostgresqlInstanceStatus `json:"status"`
}

PostgresqlInstance represents a CSQLP instance.

type PostgresqlInstanceList

type PostgresqlInstanceList struct {
	// Standard type metadata.
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	metav1.ListMeta `json:"metadata"`
	// Items is the set of PostgresqlInstance resources in the list.
	Items []PostgresqlInstance `json:"items"`
}

PostgresqlInstanceList is a list of PostgresqlInstance resources.

type PostgresqlInstanceSpec

type PostgresqlInstanceSpec struct {
	// Availability allows for customizing the availability of the CSQLP instance.
	// +optional
	Availability *PostgresqlInstanceSpecAvailability `json:"availability"`
	// Backups allows for customizing the backup strategy for the CSQLP instance.
	// +optional
	Backups *PostgresqlInstanceSpecBackups `json:"backups"`
	// Flags is a list of flags passed to the CSQLP instance.
	// +optional
	Flags PostgresqlInstanceSpecFlags `json:"flags"`
	// Labels is a map of user-defined labels to be set on the CSQLP instance.
	// +optional
	Labels map[string]string `json:"labels"`
	// Location allows for customizing the geographical location of the CSQLP instance.
	// +optional
	Location *PostgresqlInstanceSpecLocation `json:"location"`
	// Maintenance allows for customizing the maintenance window of the CSQLP instance.
	// +optional
	Maintenance *PostgresqlInstanceSpecMaintenance `json:"maintenance"`
	// Name is the name of the CSQLP instance.
	Name string `json:"name"`
	// Networking allows for customizing the networking aspects of the CSQLP instance.
	// +optional
	Networking *PostgresqlInstanceSpecNetworking `json:"networking"`
	// Paused indicates whether reconciliation of the CSQLP instance is paused.
	// Meant only to facilitate end-to-end testing.
	// TODO Find a way to not leak this testing implementation detail into the API.
	Paused bool `json:"paused,omitempty"`
	// Resources allows for customizing the resource requests for the CSQLP instance.
	// +optional
	Resources *PostgresqlInstanceSpecResources `json:"resources"`
	// Version is the version of the CSQLP instance.
	// +optional
	Version *PostgresqlInstanceSpecVersion `json:"version"`
}

PostgresqlInstanceSpec represents the specification of a CSQLP instance.

type PostgresqlInstanceSpecAvailability

type PostgresqlInstanceSpecAvailability struct {
	// Type is the availability type of the CSQLP instance.
	Type *PostgresqlInstanceSpecAvailabilityType `json:"type"`
}

PostgresqlInstanceSpecAvailability allows for customizing the availability of a CSQLP instance.

type PostgresqlInstanceSpecAvailabilityType

type PostgresqlInstanceSpecAvailabilityType string

PostgresqlInstanceSpecAvailabilityType represents availability types for CSQLP instances.

func (*PostgresqlInstanceSpecAvailabilityType) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current availability type.

type PostgresqlInstanceSpecBackups

type PostgresqlInstanceSpecBackups struct {
	// Daily allows for customizing the daily backup strategy for the CSQLP instance.
	// +optional
	Daily *PostgresqlInstancSpecBackupsDaily `json:"daily"`
}

PostgresqlInstanceSpecBackups allows for customizing the backup strategy for a CSQLP instance.

type PostgresqlInstanceSpecFlags

type PostgresqlInstanceSpecFlags []string

PostgresqlInstanceSpecFlags allows for customizing the database flags for a CSQLP instance.

func (*PostgresqlInstanceSpecFlags) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current set of database flags.

type PostgresqlInstanceSpecLocation

type PostgresqlInstanceSpecLocation struct {
	// Region is the region where the CSQLP instance is located.
	// +optional
	Region *string `json:"region"`
	// Zone is the zone where the CSQLP instance is located.
	// +optional
	Zone *PostgresqlInstanceSpecLocationZone `json:"zone"`
}

PostgresqlInstanceSpecLocation allows for customizing the geographical location of a CSQLP instance.

type PostgresqlInstanceSpecLocationZone

type PostgresqlInstanceSpecLocationZone string

PostgresqlInstanceSpecLocationZone represents a Google Cloud Platform zone where CSQLP instances may be located.

func (*PostgresqlInstanceSpecLocationZone) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current choice of zone.

type PostgresqlInstanceSpecMaintenance

type PostgresqlInstanceSpecMaintenance struct {
	// Day is the preferred day of the week for periodic maintenance of the CSQLP instance.
	// +optional
	Day *PostgresqlInstanceSpecMaintenanceDay `json:"day"`
	// Hour is the preferred hour of the day (in UTC) for periodic maintenance of the CSQLP instance, in 24-hour format.
	// +optional
	Hour *PostgresqlInstanceSpecMaintenanceHour `json:"hour"`
}

PostgresqlInstanceSpecMaintenance allows for customizing the maintenance window of a CSQLP instance.

type PostgresqlInstanceSpecMaintenanceDay

type PostgresqlInstanceSpecMaintenanceDay string

PostgresqlInstanceSpecMaintenanceDay represents a day of the week for periodic maintenance of a CSQLP instance.

func (*PostgresqlInstanceSpecMaintenanceDay) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current maintenance day.

type PostgresqlInstanceSpecMaintenanceHour

type PostgresqlInstanceSpecMaintenanceHour string

PostgresqlInstanceSpecMaintenanceHour represents a hour of the day for periodic maintenance of a CSQLP instance.

func (*PostgresqlInstanceSpecMaintenanceHour) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current maintenance hour.

type PostgresqlInstanceSpecNetworking

type PostgresqlInstanceSpecNetworking struct {
	// PrivateIP allows for customizing access to the CSQLP instance via a private IP address.
	// +optional
	PrivateIP *PostgresqlInstanceSpecNetworkingPrivateIP `json:"privateIp"`
	// PublicIP allows for customizing access to the CSQLP instance via a public IP address.
	// +optional
	PublicIP *PostgresqlInstanceSpecNetworkingPublicIP `json:"publicIp"`
}

PostgresqlInstanceSpecNetworking allows for customizing the networking aspects of a CSQLP instance.

type PostgresqlInstanceSpecNetworkingPrivateIP

type PostgresqlInstanceSpecNetworkingPrivateIP struct {
	// Enabled specifies whether the Cloud SQL for Postgresql Instance is accessible via a private IP address.
	// +optional
	Enabled *bool `json:"enabled"`
	// Network is resource link of the VPC network from which the CSQLP instance is accessible via a private IP address.
	// +optional
	Network *string `json:"network"`
}

PostgresqlInstanceSpecNetworkingPrivateIP allows for customizing access to a CSQLP instance via a private IP.

type PostgresqlInstanceSpecNetworkingPublicIP

type PostgresqlInstanceSpecNetworkingPublicIP struct {
	// AuthorizedNetworks is a list of rules that authorize access to the CSQLP instance via a public IP address.
	// +optional
	AuthorizedNetworks PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetworkList `json:"authorizedNetworks"`
	// Enabled specifies whether the Cloud SQL for Postgresql Instance is accessible via a public IP address.
	// +optional
	Enabled *bool `json:"enabled"`
}

PostgresqlInstanceSpecNetworkingPublicIP allows for customizing access to a CSQLP instance via a public IP.

type PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetwork

type PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetwork struct {
	// Cidr is the subnet which to authorize by the current rule.
	Cidr string `json:"cidr"`
	// Name is the name of the current rule.
	// +optional
	Name *string `json:"name"`
}

PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetwork allows for specifying a subnet for which to authorize access to a CSQLP instance via a public IP.

type PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetworkList

type PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetworkList []PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetwork

PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetworkList allows for specifying a list of subnets for which to authorize access to a CSQLP instance via a public IP.

func (*PostgresqlInstanceSpecNetworkingPublicIPAuthorizedNetworkList) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current list of authorized networks.

type PostgresqlInstanceSpecResources

type PostgresqlInstanceSpecResources struct {
	// Disk allows for customizing the storage of the CSQLP instance.
	// +optional
	Disk *PostgresqlInstanceSpecResourcesDisk `json:"disk"`
	// InstanceType is the instance type to use for the CSQLP instance.
	// +optional
	InstanceType *string `json:"instanceType"`
}

PostgresqlInstanceSpecResources allows for customizing the resource requests for a CSQLP instance.

type PostgresqlInstanceSpecResourcesDisk

type PostgresqlInstanceSpecResourcesDisk struct {
	// SizeMaximumGb is the maximum size (in GB) to which the storage capacity of the CSQLP instance can be automatically increased.
	// +optional
	SizeMaximumGb *int32 `json:"sizeMaximumGb"`
	// SizeMinimumGb is the minimum size (in GB) requested for the storage capacity of the CSQLP instance.
	// +optional
	SizeMinimumGb *int32 `json:"sizeMinimumGb"`
	// Type is the type of disk used for storage by the CSQLP instance.
	// +optional
	Type *PostgresqlInstanceSpecResourcesDiskType `json:"type"`
}

PostgresqlInstanceSpecResourcesDisk allows for customizing the storage of the CSQLP instance.

type PostgresqlInstanceSpecResourcesDiskType

type PostgresqlInstanceSpecResourcesDiskType string

PostgresqlInstanceSpecResourcesDiskType represents the types of disk that can be used for storage by the Cloud SQL for Postgresql instance.

func (*PostgresqlInstanceSpecResourcesDiskType) APIValue

APIValue returns the Cloud SQL Admin API value that represents the current disk type.

type PostgresqlInstanceSpecVersion

type PostgresqlInstanceSpecVersion string

PostgresqlInstanceSpecVersion represents a supported Cloud SQL for PostgreSQL version.

func (*PostgresqlInstanceSpecVersion) APIValue

func (v *PostgresqlInstanceSpecVersion) APIValue() string

APIValue returns the Cloud SQL Admin API value that represents the current Cloud SQL for PostgreSQL version.

type PostgresqlInstanceStatus

type PostgresqlInstanceStatus struct {
	// Conditions is the set of conditions associated with the current PostgresqlInstance resource.
	// +optional
	Conditions []PostgresqlInstanceStatusCondition `json:"conditions,omitempty"`
	// ConnectionName is the connection name to use when connecting to the CSQLP instance.
	ConnectionName string `json:"connectionName,omitempty"`
	// IPs is the set of IPs associated with the current PostgresqlInstance resource.
	// +optional
	IPs PostgresqlInstanceStatusIPAddresses `json:"ips,omitempty"`
}

PostgresqlInstanceStatus represents the status of a CSQLP instance.

type PostgresqlInstanceStatusCondition

type PostgresqlInstanceStatusCondition struct {
	// LastTransitionTime is the timestamp corresponding to the last status change of this condition.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Message is a human readable description of the details of the condition's last transition.
	// +optional
	Message string `json:"message,omitempty"`
	// Reason is a brief machine readable explanation for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// Status is the status of the condition (one of "True", "False" or "Unknown").
	Status corev1.ConditionStatus `json:"status"`
	// Type is the type of the condition.
	Type PostgresqlInstanceStatusConditionType `json:"type"`
}

PostgresqlInstanceStatusCondition represents a condition associated with a PostgresqlInstance resource.

type PostgresqlInstanceStatusConditionType

type PostgresqlInstanceStatusConditionType string

PostgresqlInstanceStatusConditionType represents the type of a condition associated with a PostgresqlInstance resource.

type PostgresqlInstanceStatusIPAddresses

type PostgresqlInstanceStatusIPAddresses struct {
	// PrivateIP is the private IP associated with the CSQLP instance (if any).
	PrivateIP string `json:"privateIp,omitempty"`
	// PublicIP is the public IP associated with the CSQLP instance (if any).
	PublicIP string `json:"publicIp,omitempty"`
}

PostgresqlInstanceStatusIPAddresses holds the reported IP addresses of a CSQLP instance.

Jump to

Keyboard shortcuts

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