api

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	KindUser = KindInfo{
		Resource: GroupVersion.WithResource("users"),
		// contains filtered or unexported fields
	}

	AllKinds = []KindInfo{KindUser}
)

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

Types

type KindInfo

type KindInfo struct {
	Resource schema.GroupVersionResource
	// contains filtered or unexported fields
}

KindInfo holds type meta-information

func (*KindInfo) GroupResource

func (k *KindInfo) GroupResource() schema.GroupResource

GroupResource returns the GroupResource for the kind

type LinkedAccount

type LinkedAccount struct {
	ProviderID       string `json:"providerID,omitempty"`
	ProviderUserID   string `json:"providerUserID,omitempty"`
	ProviderUserName string `json:"providerUserName,omitempty"`
}

func (*LinkedAccount) DeepCopy

func (in *LinkedAccount) DeepCopy() *LinkedAccount

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

func (*LinkedAccount) DeepCopyInto

func (in *LinkedAccount) DeepCopyInto(out *LinkedAccount)

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"`
}

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.

type UserList

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

UserList contains a list of User

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 {
	Email          string          `json:"email,omitempty"`
	LinkedAccounts []LinkedAccount `json:"linkedAccounts,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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