v1alpha1

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: EUPL-1.2 Imports: 7 Imported by: 15

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.libre.sh

Index

Constants

View Source
const BucketSecretSuffix = "bucket.libre.sh"
View Source
const ZalandoTeam = "pg"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.libre.sh", Version: "v1alpha1"}

	// 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
)
View Source
var (
	IDPSecretName             = "idp.sso.libre.sh"
	ClientSecretAuthenticator = "client-secret"
)

Functions

This section is empty.

Types

type AuthenticationFlow added in v0.2.3

type AuthenticationFlow string
const (
	AuthorizationCodeFlow AuthenticationFlow = "authorization-code"
	ImplicitFlow          AuthenticationFlow = "implicit"
	HybridFlow            AuthenticationFlow = "hybrid"
)

type Bucket

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

	Spec   BucketSpec   `json:"spec,omitempty"`
	Status BucketStatus `json:"status,omitempty"`
}

Bucket is the Schema for the buckets API

func (*Bucket) DeepCopy

func (in *Bucket) DeepCopy() *Bucket

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

func (*Bucket) DeepCopyInto

func (in *Bucket) DeepCopyInto(out *Bucket)

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

func (*Bucket) DeepCopyObject

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

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

func (*Bucket) GetConditions

func (o *Bucket) GetConditions() []metav1.Condition

func (*Bucket) SecretName

func (o *Bucket) SecretName() string

func (*Bucket) SetConditions

func (o *Bucket) SetConditions(conditions []metav1.Condition)

type BucketList

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

BucketList contains a list of Bucket

func (*BucketList) DeepCopy

func (in *BucketList) DeepCopy() *BucketList

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

func (*BucketList) DeepCopyInto

func (in *BucketList) DeepCopyInto(out *BucketList)

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

func (*BucketList) DeepCopyObject

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

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

type BucketPolicy

type BucketPolicy struct {
	//+optional
	Preset BucketPolicyPreset `json:"preset,omitempty"`
	//+optional
	Custom string `json:"custom,omitempty"`
}

func (*BucketPolicy) DeepCopy

func (in *BucketPolicy) DeepCopy() *BucketPolicy

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

func (*BucketPolicy) DeepCopyInto

func (in *BucketPolicy) DeepCopyInto(out *BucketPolicy)

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

type BucketPolicyPreset

type BucketPolicyPreset string

+kubebuilder:validation:Enum:=cdn;public;private

const (
	BucketCDNPreset     BucketPolicyPreset = "cdn"
	BucketPublicPreset  BucketPolicyPreset = "public"
	BucketPrivatePreset BucketPolicyPreset = "private"
)

type BucketProvider

type BucketProvider string

+kubebuilder:validation:Enum:=data;pitr

const (
	BucketDataProvider BucketProvider = "data"
	BucketPITRProvider BucketProvider = "pitr"
)

type BucketSpec

type BucketSpec struct {
	//+optional
	Suspend bool `json:"suspend,omitempty"`
	//+required
	Provider BucketProvider `json:"provider"`
	//+optional
	Policy BucketPolicy `json:"policy,omitempty"`
	//+optional
	Versioned bool `json:"versioned,omitempty"`
	//+optional
	//+kubebuilder:validation:Schemaless
	//+kubebuilder:pruning:PreserveUnknownFields
	LifecycleRules []json.RawMessage `json:"lifecycleRules,omitempty"`
}

BucketSpec defines the desired state of Bucket

func (*BucketSpec) DeepCopy

func (in *BucketSpec) DeepCopy() *BucketSpec

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

func (*BucketSpec) DeepCopyInto

func (in *BucketSpec) DeepCopyInto(out *BucketSpec)

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

type BucketStatus

type BucketStatus struct {
	//+optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	//+kubebuilder:validation:Type=object
	//+kubebuilder:validation:Schemaless
	//+kubebuilder:pruning:PreserveUnknownFields
	State json.RawMessage `json:"state,omitempty"`
}

BucketStatus defines the observed state of Bucket

func (*BucketStatus) DeepCopy

func (in *BucketStatus) DeepCopy() *BucketStatus

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

func (*BucketStatus) DeepCopyInto

func (in *BucketStatus) DeepCopyInto(out *BucketStatus)

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

type OIDCClient added in v0.2.3

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

	Spec   OIDCClientSpec   `json:"spec,omitempty"`
	Status OIDCClientStatus `json:"status,omitempty"`
}

OIDCClient is the Schema for the oidcclients API

func (*OIDCClient) DeepCopy added in v0.2.3

func (in *OIDCClient) DeepCopy() *OIDCClient

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

func (*OIDCClient) DeepCopyInto added in v0.2.3

func (in *OIDCClient) DeepCopyInto(out *OIDCClient)

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

func (*OIDCClient) DeepCopyObject added in v0.2.3

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

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

func (*OIDCClient) GetConditions added in v0.2.3

func (o *OIDCClient) GetConditions() []metav1.Condition

func (*OIDCClient) GetImage added in v0.2.3

func (o *OIDCClient) GetImage() string

func (*OIDCClient) GetSuspend added in v0.2.3

func (o *OIDCClient) GetSuspend() bool

func (*OIDCClient) GetVersion added in v0.2.3

func (o *OIDCClient) GetVersion() string

func (*OIDCClient) SecretName added in v0.2.3

func (o *OIDCClient) SecretName() string

func (*OIDCClient) SetConditions added in v0.2.3

func (o *OIDCClient) SetConditions(conditions []metav1.Condition)

func (*OIDCClient) SetSuspend added in v0.2.3

func (o *OIDCClient) SetSuspend(value bool)

func (*OIDCClient) SetVersion added in v0.2.3

func (o *OIDCClient) SetVersion(value string)

type OIDCClientList added in v0.2.3

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

OIDCClientList contains a list of OIDCClient

func (*OIDCClientList) DeepCopy added in v0.2.3

func (in *OIDCClientList) DeepCopy() *OIDCClientList

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

func (*OIDCClientList) DeepCopyInto added in v0.2.3

func (in *OIDCClientList) DeepCopyInto(out *OIDCClientList)

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

func (*OIDCClientList) DeepCopyObject added in v0.2.3

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

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

type OIDCClientSpec added in v0.2.3

type OIDCClientSpec struct {
	//+kubebuilder:validation:Optional
	Suspend bool `json:"suspend,omitempty"`
	//+kubebuilder:validation:Optional
	Disable bool `json:"disable,omitempty"`
	//+kubebuilder:validation:Required
	BaseURL string `json:"baseURL,omitempty"`
	//+kubebuilder:validation:Optional
	RedirectURIs []string `json:"redirectURIs,omitempty"`
	// AuthenticationFlow, can be authorization code flow, implicit flow or hybrid flow
	//+kubebuilder:validation:Required
	AuthenticationFlow AuthenticationFlow `json:"authenticationFlow,omitempty"`
}

OIDCClientSpec defines the desired state of OIDCClient

func (*OIDCClientSpec) DeepCopy added in v0.2.3

func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec

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

func (*OIDCClientSpec) DeepCopyInto added in v0.2.3

func (in *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec)

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

type OIDCClientStatus added in v0.2.3

type OIDCClientStatus struct {
	//+kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	//+kubebuilder:validation:Type=object
	//+kubebuilder:validation:Schemaless
	//+kubebuilder:pruning:PreserveUnknownFields
	State json.RawMessage `json:"state,omitempty"`
}

OIDCClientStatus defines the observed state of OIDCClient

func (*OIDCClientStatus) DeepCopy added in v0.2.3

func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus

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

func (*OIDCClientStatus) DeepCopyInto added in v0.2.3

func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus)

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

type Postgres

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

	Spec   PostgresSpec   `json:"spec,omitempty"`
	Status PostgresStatus `json:"status,omitempty"`
}

Postgres is the Schema for the Postgres API

func (*Postgres) DeepCopy

func (in *Postgres) DeepCopy() *Postgres

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

func (*Postgres) DeepCopyInto

func (in *Postgres) DeepCopyInto(out *Postgres)

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

func (*Postgres) DeepCopyObject

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

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

func (*Postgres) GetConditions

func (o *Postgres) GetConditions() []metav1.Condition

func (*Postgres) SecretName

func (postgres *Postgres) SecretName() string

func (*Postgres) SetConditions

func (o *Postgres) SetConditions(conditions []metav1.Condition)

func (*Postgres) User

func (postgres *Postgres) User() string

type PostgresList

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

PostgresList contains a list of Postgres

func (*PostgresList) DeepCopy

func (in *PostgresList) DeepCopy() *PostgresList

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

func (*PostgresList) DeepCopyInto

func (in *PostgresList) DeepCopyInto(out *PostgresList)

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

func (*PostgresList) DeepCopyObject

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

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

type PostgresSecret added in v0.2.0

type PostgresSecret struct {
	*corev1.Secret
}

+kubebuilder:object:generate=false

func (PostgresSecret) GetDatabase added in v0.2.0

func (ps PostgresSecret) GetDatabase() string

func (PostgresSecret) GetHost added in v0.2.0

func (ps PostgresSecret) GetHost() string

func (PostgresSecret) GetPassword added in v0.2.0

func (ps PostgresSecret) GetPassword() string

func (PostgresSecret) GetURL added in v0.2.0

func (ps PostgresSecret) GetURL() string

func (PostgresSecret) GetUsername added in v0.2.0

func (ps PostgresSecret) GetUsername() string

type PostgresSpec

type PostgresSpec struct {
	//+kubebuilder:validation:Optional
	Suspend bool `json:"suspend,omitempty"`
	//+kubebuilder:validation:Required
	Database string `json:"database"`
}

PostgresSpec defines the desired state of Postgres

func (*PostgresSpec) DeepCopy

func (in *PostgresSpec) DeepCopy() *PostgresSpec

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

func (*PostgresSpec) DeepCopyInto

func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec)

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

type PostgresStatus

type PostgresStatus struct {
	//+optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	//+kubebuilder:validation:Type=object
	//+kubebuilder:validation:Schemaless
	//+kubebuilder:pruning:PreserveUnknownFields
	State json.RawMessage `json:"state,omitempty"`
}

PostgresStatus defines the observed state of Postgres

func (*PostgresStatus) DeepCopy

func (in *PostgresStatus) DeepCopy() *PostgresStatus

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

func (*PostgresStatus) DeepCopyInto

func (in *PostgresStatus) DeepCopyInto(out *PostgresStatus)

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

type Redis

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

	Spec   RedisSpec   `json:"spec,omitempty"`
	Status RedisStatus `json:"status,omitempty"`
}

Redis is the Schema for the redis API

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

func (*Redis) DeepCopyObject

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

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

func (*Redis) GetConditions

func (o *Redis) GetConditions() []metav1.Condition

func (*Redis) SecretName

func (o *Redis) SecretName() string

func (*Redis) SetConditions

func (o *Redis) SetConditions(conditions []metav1.Condition)

type RedisList

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

RedisList contains a list of Redis

func (*RedisList) DeepCopy

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto

func (in *RedisList) DeepCopyInto(out *RedisList)

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

func (*RedisList) DeepCopyObject

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

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

type RedisPersistence

type RedisPersistence struct {
	//+optional
	Enabled bool `json:"enabled,omitempty"`
}

func (*RedisPersistence) DeepCopy added in v0.2.0

func (in *RedisPersistence) DeepCopy() *RedisPersistence

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

func (*RedisPersistence) DeepCopyInto added in v0.2.0

func (in *RedisPersistence) DeepCopyInto(out *RedisPersistence)

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

type RedisSpec

type RedisSpec struct {
	//+optional
	Suspend bool `json:"suspend,omitempty"`
	//+optional
	DisableAuth bool `json:"disableAuth,omitempty"`
	//+optional
	Persistence RedisPersistence `json:"persistence,omitempty"`
}

RedisSpec defines the desired state of Redis

func (*RedisSpec) DeepCopy

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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

type RedisStatus

type RedisStatus struct {
	//+optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	//+kubebuilder:validation:Type=object
	//+kubebuilder:validation:Schemaless
	//+kubebuilder:pruning:PreserveUnknownFields
	State json.RawMessage `json:"state,omitempty"`
}

RedisStatus defines the observed state of Redis

func (*RedisStatus) DeepCopy

func (in *RedisStatus) DeepCopy() *RedisStatus

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

func (*RedisStatus) DeepCopyInto

func (in *RedisStatus) DeepCopyInto(out *RedisStatus)

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