v1beta1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the auth.components v1beta1 API group +kubebuilder:object:generate=true +groupName=auth.components.formance.com

Index

Constants

View Source
const (
	ConditionTypeClientCreated      = "ClientCreated"
	ConditionTypeClientUpdated      = "ClientUpdated"
	ConditionTypeScopesSynchronized = "ScopesSynchronized"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "auth.components.formance.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 Client

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

	Spec   ClientSpec   `json:"spec,omitempty"`
	Status ClientStatus `json:"status,omitempty"`
}

Client is the Schema for the oauths API

func NewClient

func NewClient(name, reference string) *Client

func (*Client) AddScopeSpec

func (in *Client) AddScopeSpec(scope *Scope)

func (*Client) AuthServerReference

func (in *Client) AuthServerReference() string

func (*Client) ClearAuthServerID

func (in *Client) ClearAuthServerID()

func (*Client) DeepCopy

func (in *Client) DeepCopy() *Client

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

func (*Client) DeepCopyInto

func (in *Client) DeepCopyInto(out *Client)

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

func (*Client) DeepCopyObject

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

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

func (*Client) GetConditions

func (in *Client) GetConditions() *Conditions

func (*Client) GetStatus

func (c *Client) GetStatus() Dirty

func (*Client) IsCreatedOnAuthServer

func (in *Client) IsCreatedOnAuthServer() bool

func (*Client) IsDirty

func (c *Client) IsDirty(t Object) bool

func (*Client) Match

func (in *Client) Match(client *authclient.Client) bool

func (*Client) SetClientCreated

func (in *Client) SetClientCreated(id string)

func (*Client) SetClientUpdated

func (in *Client) SetClientUpdated()

func (*Client) SetScopeSynchronized

func (in *Client) SetScopeSynchronized(scope *Scope)

func (*Client) SetScopesRemoved

func (in *Client) SetScopesRemoved(authServerID string)

type ClientConfiguration

type ClientConfiguration struct {
	// +optional
	Public bool `json:"public"`
	// +optional
	Description *string `json:"description,omitempty"`
	// +optional
	RedirectUris []string `json:"redirectUris,omitempty"`
	// +optional
	PostLogoutRedirectUris []string `json:"postLogoutRedirectUris,omitempty"`
	// +optional
	Scopes []string `json:"scopes,omitempty"`
}

func (*ClientConfiguration) DeepCopy

func (in *ClientConfiguration) DeepCopy() *ClientConfiguration

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

func (*ClientConfiguration) DeepCopyInto

func (in *ClientConfiguration) DeepCopyInto(out *ClientConfiguration)

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

type ClientList

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

ClientList contains a list of Client

func (*ClientList) DeepCopy

func (in *ClientList) DeepCopy() *ClientList

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

func (*ClientList) DeepCopyInto

func (in *ClientList) DeepCopyInto(out *ClientList)

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

func (*ClientList) DeepCopyObject

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

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

type ClientSpec

type ClientSpec struct {
	ClientConfiguration `json:",inline"`
	AuthServerReference string `json:"authServerReference"`
}

ClientSpec defines the desired state of Client

func (*ClientSpec) DeepCopy

func (in *ClientSpec) DeepCopy() *ClientSpec

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

func (*ClientSpec) DeepCopyInto

func (in *ClientSpec) DeepCopyInto(out *ClientSpec)

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

type ClientStatus

type ClientStatus struct {
	Status       `json:",inline"`
	AuthServerID string `json:"authServerID,omitempty"`
	// +optional
	Scopes map[string]string `json:"scopes"`
}

ClientStatus defines the observed state of Client

func (*ClientStatus) DeepCopy

func (in *ClientStatus) DeepCopy() *ClientStatus

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

func (*ClientStatus) DeepCopyInto

func (in *ClientStatus) DeepCopyInto(out *ClientStatus)

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

func (*ClientStatus) IsDirty

func (in *ClientStatus) IsDirty(t Object) bool

type Scope

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

	Spec   ScopeSpec   `json:"spec,omitempty"`
	Status ScopeStatus `json:"status,omitempty"`
}

Scope is the Schema for the scopes API

func NewScope

func NewScope(name, label, authReference string, transient ...string) *Scope

func (*Scope) AuthServerReference

func (s *Scope) AuthServerReference() string

func (*Scope) ClearAuthServerID

func (s *Scope) ClearAuthServerID()

func (*Scope) DeepCopy

func (in *Scope) DeepCopy() *Scope

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

func (*Scope) DeepCopyInto

func (in *Scope) DeepCopyInto(out *Scope)

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

func (*Scope) DeepCopyObject

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

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

func (*Scope) GetConditions

func (in *Scope) GetConditions() *Conditions

func (*Scope) GetStatus

func (s *Scope) GetStatus() Dirty

func (*Scope) IsCreatedOnAuthServer

func (s *Scope) IsCreatedOnAuthServer() bool

func (*Scope) IsDirty

func (s *Scope) IsDirty(t Object) bool

func (*Scope) IsInTransient

func (s *Scope) IsInTransient(authScope *authclient.Scope) bool

func (*Scope) SetRegisteredTransientScope

func (s *Scope) SetRegisteredTransientScope(transientScope *Scope)

type ScopeList

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

ScopeList contains a list of Scope

func (*ScopeList) DeepCopy

func (in *ScopeList) DeepCopy() *ScopeList

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

func (*ScopeList) DeepCopyInto

func (in *ScopeList) DeepCopyInto(out *ScopeList)

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

func (*ScopeList) DeepCopyObject

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

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

type ScopeSpec

type ScopeSpec struct {
	Label string `json:"label"`
	// +optional
	Transient           []string `json:"transient"`
	AuthServerReference string   `json:"authServerReference"`
}

ScopeSpec defines the desired state of Scope

func (*ScopeSpec) DeepCopy

func (in *ScopeSpec) DeepCopy() *ScopeSpec

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

func (*ScopeSpec) DeepCopyInto

func (in *ScopeSpec) DeepCopyInto(out *ScopeSpec)

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

type ScopeStatus

type ScopeStatus struct {
	Status       `json:",inline"`
	AuthServerID string                          `json:"authServerID,omitempty"`
	Transient    map[string]TransientScopeStatus `json:"transient,omitempty"`
}

ScopeStatus defines the observed state of Scope

func (*ScopeStatus) DeepCopy

func (in *ScopeStatus) DeepCopy() *ScopeStatus

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

func (*ScopeStatus) DeepCopyInto

func (in *ScopeStatus) DeepCopyInto(out *ScopeStatus)

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

func (*ScopeStatus) IsDirty

func (in *ScopeStatus) IsDirty(t Object) bool

type StaticClient

type StaticClient struct {
	ClientConfiguration `json:",inline" yaml:",inline"`
	ID                  string `json:"id" yaml:"id"`
	// +optional
	Secrets []string `json:"secrets" yaml:"secrets"`
}

func (*StaticClient) DeepCopy

func (in *StaticClient) DeepCopy() *StaticClient

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

func (*StaticClient) DeepCopyInto

func (in *StaticClient) DeepCopyInto(out *StaticClient)

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

type TransientScopeStatus

type TransientScopeStatus struct {
	ObservedGeneration int64  `json:"observedGeneration"`
	AuthServerID       string `json:"authServerID"`
	Date               string `json:"date"`
}

func (*TransientScopeStatus) DeepCopy

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

func (*TransientScopeStatus) DeepCopyInto

func (in *TransientScopeStatus) DeepCopyInto(out *TransientScopeStatus)

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