v1beta1

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package v1beta contains hand crafted API Schema definitions for the dbformysql v1beta API group +groupName=dbformysql.azure.com

Package v1beta1 contains API Schema definitions for dbformysql data plane APIs +kubebuilder:object:generate=true All object properties are optional by default, this will be overridden when needed: +kubebuilder:validation:Optional +groupName=dbformysql.azure.com

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "dbformysql.azure.com", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type LocalUserSpec

type LocalUserSpec struct {
	// +kubebuilder:validation:Required
	// ServerAdminUsername is the user name of the Server administrator
	ServerAdminUsername string `json:"serverAdminUsername,omitempty"`

	// +kubebuilder:validation:Required
	// ServerAdminPassword is a reference to a secret containing the servers administrator password
	ServerAdminPassword *genruntime.SecretReference `json:"serverAdminPassword,omitempty"`

	// +kubebuilder:validation:Required
	// Password is the password to use for the user
	Password *genruntime.SecretReference `json:"password,omitempty"`
}

func (*LocalUserSpec) DeepCopy

func (in *LocalUserSpec) DeepCopy() *LocalUserSpec

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

func (*LocalUserSpec) DeepCopyInto

func (in *LocalUserSpec) DeepCopyInto(out *LocalUserSpec)

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

type User

type User struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              UserSpec   `json:"spec,omitempty"`
	Status            UserStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" User is a MySQL user

func (*User) AssignProperties_From_User

func (user *User) AssignProperties_From_User(source *v1.User) error

func (*User) AssignProperties_To_User

func (user *User) AssignProperties_To_User(destination *v1.User) error

AssignProperties_To_User populates the provided destination User from our User

func (*User) AzureName

func (user *User) AzureName() string

AzureName returns the Azure name of the resource

func (*User) ConvertFrom

func (user *User) ConvertFrom(hub conversion.Hub) error

ConvertFrom populates our ConfigurationStore from the provided hub ConfigurationStore

func (*User) ConvertTo

func (user *User) ConvertTo(hub conversion.Hub) error

ConvertTo populates the provided hub ConfigurationStore from our ConfigurationStore

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

func (*User) Default

func (user *User) Default()

Default applies defaults to the FlexibleServer resource

func (*User) GetConditions

func (user *User) GetConditions() conditions.Conditions

GetConditions returns the conditions of the resource

func (*User) Owner

func (user *User) Owner() *genruntime.ResourceReference

Owner returns the ResourceReference of the owner, or nil if there is no owner

func (*User) SetConditions

func (user *User) SetConditions(conditions conditions.Conditions)

SetConditions sets the conditions on the resource status

func (*User) ValidateCreate

func (user *User) ValidateCreate() (admission.Warnings, error)

ValidateCreate validates the creation of the resource

func (*User) ValidateDelete

func (user *User) ValidateDelete() (admission.Warnings, error)

ValidateDelete validates the deletion of the resource

func (*User) ValidateUpdate

func (user *User) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate validates an update of the resource

type UserList

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

+kubebuilder:object:root=true

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

type UserSpec

type UserSpec struct {
	//AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it
	//doesn't have to be.
	AzureName string `json:"azureName,omitempty"`

	// +kubebuilder:validation:Required
	//Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also
	//controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a
	//reference to a dbformysql.azure.com/FlexibleServer resource
	Owner *genruntime.KubernetesOwnerReference `group:"dbformysql.azure.com" json:"owner,omitempty" kind:"FlexibleServer"`

	// Hostname is the host the user will connect from. If omitted, the default is to allow connection from any hostname.
	Hostname string `json:"hostname,omitempty"`

	// The server-level roles assigned to the user.
	// Privileges include the following: RELOAD, PROCESS, SHOW
	// DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, CREATE USER
	Privileges []string `json:"privileges,omitempty"`

	// The database-level roles assigned to the user (keyed by
	// database name). Privileges include the following: SELECT,
	// INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX,
	// ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE
	// VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER
	DatabasePrivileges map[string][]string `json:"databasePrivileges,omitempty"`

	// TODO: Note this is required right now but will move to be optional in the future when we have AAD support
	// +kubebuilder:validation:Required
	// LocalUser contains details for creating a standard (non-aad) MySQL User
	LocalUser *LocalUserSpec `json:"localUser,omitempty"`
}

func (*UserSpec) AssignProperties_From_UserSpec

func (userSpec *UserSpec) AssignProperties_From_UserSpec(source *v1.UserSpec) error

func (*UserSpec) AssignProperties_To_UserSpec

func (userSpec *UserSpec) AssignProperties_To_UserSpec(destination *v1.UserSpec) error

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

func (*UserSpec) OriginalVersion

func (userSpec *UserSpec) OriginalVersion() string

OriginalVersion returns the original API version used to create the resource.

func (*UserSpec) SetAzureName

func (userSpec *UserSpec) SetAzureName(azureName string)

SetAzureName sets the Azure name of the resource

type UserStatus

type UserStatus struct {
	//Conditions: The observed state of the resource
	Conditions []conditions.Condition `json:"conditions,omitempty"`
}

func (*UserStatus) AssignProperties_From_UserStatus

func (userSpec *UserStatus) AssignProperties_From_UserStatus(source *v1.UserStatus) error

func (*UserStatus) AssignProperties_To_UserStatus

func (userSpec *UserStatus) AssignProperties_To_UserStatus(destination *v1.UserStatus) error

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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