v1alpha1

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kubepost v1alpha1 API group +groupName=kubepost.io

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

	Spec   DatabaseSpec   `json:"spec"`
	Status DatabaseStatus `json:"status,omitempty"`
}

Database is the Schema for the databases API

type DatabaseList

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

DatabaseList contains a list of Database

type DatabaseSpec

type DatabaseSpec struct {
	InstanceRef  InstanceRef `json:"instanceRef"`
	DatabaseName string      `json:"databaseName"`
	//+kubebuilder:validation:Optional
	DatabaseOwner string `json:"databaseOwner"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=true
	PreventDeletion bool `json:"preventDeletion"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=false
	CascadeDelete bool `json:"cascadeDelete"`
	//+kubebuilder:validation:Optional
	Extensions []Extension `json:"extensions"`
}

type DatabaseStatus

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

type Extension

type Extension struct {
	Name string `json:"name"`
	//+kubebuilder:default:=latest
	Version string `json:"version,omitempty"`
}

type Grant

type Grant struct {
	Database string        `json:"database"`
	Objects  []GrantObject `json:"objects"`
}

type GrantObject added in v0.3.4

type GrantObject struct {
	Identifier string   `json:"identifier"`
	Type       string   `json:"type"`
	Privileges []string `json:"privileges"`
	//+kubebuilder:validation:Optional
	WithGrantOption bool `json:"withGrantOption"`
	//+kubebuilder:validation:Optional
	WithAdminOption bool `json:"withAdminOption"`
}

type Instance

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

	Spec   InstanceSpec   `json:"spec"`
	Status InstanceStatus `json:"status,omitempty"`
}

Instance is the Schema for the instances API

type InstanceList

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

RoleList contains a list of Role

type InstanceRef

type InstanceRef struct {
	Name string `json:"name"`
}

type InstanceSpec

type InstanceSpec struct {
	Host      string    `json:"host"`
	Port      int       `json:"port"`
	Database  string    `json:"database"`
	SecretRef SecretRef `json:"secretRef"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=prefer
	SSLMode string `json:"sslMode"`
}

type InstanceStatus

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

type PasswordRef added in v0.2.0

type PasswordRef struct {
	Name        string `json:"name"`
	PasswordKey string `json:"passwordKey"`
}

type Role

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

	Spec   RoleSpec   `json:"spec"`
	Status RoleStatus `json:"status,omitempty"`
}

Role is the Schema for the roles API

type RoleList

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

RoleList contains a list of Role

type RoleSpec

type RoleSpec struct {
	InstanceRef InstanceRef `json:"instanceRef"`
	RoleName    string      `json:"roleName"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=true
	PreventDeletion bool `json:"preventDeletion"`
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=false
	CascadeDelete bool `json:"cascadeDelete"`
	//+kubebuilder:validation:Optional
	Options []string `json:"options"`
	//+kubebuilder:validation:Optional
	Password string `json:"password"`
	//+kubebuilder:validation:Optional
	PasswordRef PasswordRef `json:"passwordRef"`
	//+kubebuilder:validation:Optional
	Grants []Grant `json:"grants"`
}

type RoleStatus

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

type SecretRef

type SecretRef struct {
	Name        string `json:"name"`
	UserKey     string `json:"userKey"`
	PasswordKey string `json:"passwordKey"`
}

Jump to

Keyboard shortcuts

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