v1alpha1

package
v0.167.15 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	AccountTypeOrg                      AccountType = "org"
	AccountTypeAccount                  AccountType = "account"
	NamespaceAccountOwnerLabel                      = "account.core.openmfp.org/owner"
	NamespaceAccountOwnerNamespaceLabel             = "account.core.openmfp.org/owner-namespace"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.openmfp.org", 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
)

Functions

func SetupAccountWebhookWithManager

func SetupAccountWebhookWithManager(mgr ctrl.Manager) error

Types

type Account

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

	Spec   AccountSpec   `json:"spec,omitempty"`
	Status AccountStatus `json:"status,omitempty"`
}

Account is the Schema for the accounts API

func (*Account) DeepCopy

func (in *Account) DeepCopy() *Account

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

func (*Account) DeepCopyInto

func (in *Account) DeepCopyInto(out *Account)

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

func (*Account) DeepCopyObject

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

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

func (*Account) GetConditions

func (i *Account) GetConditions() []metav1.Condition

func (*Account) GetNextReconcileTime

func (i *Account) GetNextReconcileTime() metav1.Time

func (*Account) GetObservedGeneration

func (i *Account) GetObservedGeneration() int64

func (*Account) SetConditions

func (i *Account) SetConditions(conditions []metav1.Condition)

func (*Account) SetNextReconcileTime

func (i *Account) SetNextReconcileTime(time metav1.Time)

func (*Account) SetObservedGeneration

func (i *Account) SetObservedGeneration(g int64)

type AccountDefaulter

type AccountDefaulter struct{}

func (*AccountDefaulter) DeepCopy added in v0.166.0

func (in *AccountDefaulter) DeepCopy() *AccountDefaulter

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

func (*AccountDefaulter) DeepCopyInto added in v0.166.0

func (in *AccountDefaulter) DeepCopyInto(out *AccountDefaulter)

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

func (*AccountDefaulter) Default

func (a *AccountDefaulter) Default(ctx context.Context, obj runtime.Object) error

Default implements admission.CustomDefaulter.

type AccountInfo added in v0.166.0

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

	Spec   AccountInfoSpec   `json:"spec,omitempty"`
	Status AccountInfoStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=accountinfos +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster AccountInfo is the Schema for the accountinfo API

func (*AccountInfo) DeepCopy added in v0.166.0

func (in *AccountInfo) DeepCopy() *AccountInfo

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

func (*AccountInfo) DeepCopyInto added in v0.166.0

func (in *AccountInfo) DeepCopyInto(out *AccountInfo)

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

func (*AccountInfo) DeepCopyObject added in v0.166.0

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

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

type AccountInfoList added in v0.166.0

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

+kubebuilder:object:root=true AccountInfoList contains a list of AccountInfos

func (*AccountInfoList) DeepCopy added in v0.166.0

func (in *AccountInfoList) DeepCopy() *AccountInfoList

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

func (*AccountInfoList) DeepCopyInto added in v0.166.0

func (in *AccountInfoList) DeepCopyInto(out *AccountInfoList)

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

func (*AccountInfoList) DeepCopyObject added in v0.166.0

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

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

type AccountInfoSpec added in v0.166.0

type AccountInfoSpec struct {
	FGA           FGAInfo          `json:"fga"`
	Account       AccountLocation  `json:"account"`
	ParentAccount *AccountLocation `json:"parentAccount,omitempty"`
	Organization  AccountLocation  `json:"organization"`
	ClusterInfo   ClusterInfo      `json:"clusterInfo"`
}

AccountInfoSpec defines the desired state of Account

func (*AccountInfoSpec) DeepCopy added in v0.166.0

func (in *AccountInfoSpec) DeepCopy() *AccountInfoSpec

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

func (*AccountInfoSpec) DeepCopyInto added in v0.166.0

func (in *AccountInfoSpec) DeepCopyInto(out *AccountInfoSpec)

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

type AccountInfoStatus added in v0.166.0

type AccountInfoStatus struct {
}

AccountInfoStatus defines the observed state of AccountInfo

func (*AccountInfoStatus) DeepCopy added in v0.166.0

func (in *AccountInfoStatus) DeepCopy() *AccountInfoStatus

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

func (*AccountInfoStatus) DeepCopyInto added in v0.166.0

func (in *AccountInfoStatus) DeepCopyInto(out *AccountInfoStatus)

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

type AccountList

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

AccountList contains a list of Account

func (*AccountList) DeepCopy

func (in *AccountList) DeepCopy() *AccountList

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

func (*AccountList) DeepCopyInto

func (in *AccountList) DeepCopyInto(out *AccountList)

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

func (*AccountList) DeepCopyObject

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

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

type AccountLocation added in v0.166.0

type AccountLocation struct {
	Name      string      `json:"name"`
	ClusterId string      `json:"clusterId"`
	Path      string      `json:"path"`
	URL       string      `json:"url"`
	Type      AccountType `json:"type"`
}

func (*AccountLocation) DeepCopy added in v0.166.0

func (in *AccountLocation) DeepCopy() *AccountLocation

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

func (*AccountLocation) DeepCopyInto added in v0.166.0

func (in *AccountLocation) DeepCopyInto(out *AccountLocation)

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

type AccountSpec

type AccountSpec struct {
	// Type specifies the intended type for this Account object.
	// +kubebuilder:validation:Enum=org;account
	Type AccountType `json:"type"`

	// The display name for this account
	// +kubebuilder:validation:MaxLength=255
	DisplayName string `json:"displayName"`

	// An optional description for this account
	Description *string `json:"description,omitempty"`

	// The initial creator of this account
	Creator *string `json:"creator,omitempty"`

	Extensions []Extension `json:"extensions,omitempty"`

	// Additional information that should be stored with the account
	Data *apiextensionsv1.JSON `json:"data,omitempty"`
}

AccountSpec defines the desired state of Account

func (*AccountSpec) DeepCopy

func (in *AccountSpec) DeepCopy() *AccountSpec

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

func (*AccountSpec) DeepCopyInto

func (in *AccountSpec) DeepCopyInto(out *AccountSpec)

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

type AccountStatus

type AccountStatus struct {
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	ObservedGeneration int64              `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
	NextReconcileTime  metav1.Time        `json:"nextReconcileTime,omitempty"`
}

AccountStatus defines the observed state of Account

func (*AccountStatus) DeepCopy

func (in *AccountStatus) DeepCopy() *AccountStatus

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

func (*AccountStatus) DeepCopyInto

func (in *AccountStatus) DeepCopyInto(out *AccountStatus)

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

type AccountType

type AccountType string

type ClusterInfo added in v0.166.0

type ClusterInfo struct {
	CA string `json:"ca"`
}

func (*ClusterInfo) DeepCopy added in v0.166.0

func (in *ClusterInfo) DeepCopy() *ClusterInfo

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

func (*ClusterInfo) DeepCopyInto added in v0.166.0

func (in *ClusterInfo) DeepCopyInto(out *ClusterInfo)

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

type Extension

type Extension struct {
	metav1.TypeMeta    `json:",inline"`
	MetadataGoTemplate apiextensionsv1.JSON `json:"metadataGoTemplate,omitempty"`
	SpecGoTemplate     apiextensionsv1.JSON `json:"specGoTemplate"`

	// The type of a condition that must be set to True on the Extension object
	// for the extension to be considered reconciled and ready. If this is empty,
	// the extension is considered ready.
	ReadyConditionType *string `json:"readyConditionType,omitempty"`
}

func (*Extension) DeepCopy

func (in *Extension) DeepCopy() *Extension

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

func (*Extension) DeepCopyInto

func (in *Extension) DeepCopyInto(out *Extension)

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

type FGAInfo added in v0.166.0

type FGAInfo struct {
	Store StoreInfo `json:"store"`
}

func (*FGAInfo) DeepCopy added in v0.166.0

func (in *FGAInfo) DeepCopy() *FGAInfo

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

func (*FGAInfo) DeepCopyInto added in v0.166.0

func (in *FGAInfo) DeepCopyInto(out *FGAInfo)

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

type StoreInfo added in v0.166.0

type StoreInfo struct {
	Id string `json:"id"`
}

func (*StoreInfo) DeepCopy added in v0.166.0

func (in *StoreInfo) DeepCopy() *StoreInfo

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

func (*StoreInfo) DeepCopyInto added in v0.166.0

func (in *StoreInfo) DeepCopyInto(out *StoreInfo)

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
JackTT - Gopher 🇻🇳