v1

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: user.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type ApplicationPermissions

type ApplicationPermissions struct {
	Type       string   `json:"type"`
	Satellites []string `json:"satellites,omitempty"`
	Clusters   []string `json:"clusters,omitempty"`
	Namespaces []string `json:"namespaces,omitempty"`
}

func (*ApplicationPermissions) DeepCopy

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

func (*ApplicationPermissions) DeepCopyInto

func (in *ApplicationPermissions) DeepCopyInto(out *ApplicationPermissions)

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

type Notifications added in v0.10.0

type Notifications struct {
	Groups []NotificationsGroup `json:"groups"`
}

func (*Notifications) DeepCopy added in v0.10.0

func (in *Notifications) DeepCopy() *Notifications

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

func (*Notifications) DeepCopyInto added in v0.10.0

func (in *Notifications) DeepCopyInto(out *Notifications)

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

type NotificationsGroup added in v0.10.0

type NotificationsGroup struct {
	Title  string             `json:"title"`
	Plugin dashboardv1.Plugin `json:"plugin"`
}

func (*NotificationsGroup) DeepCopy added in v0.10.0

func (in *NotificationsGroup) DeepCopy() *NotificationsGroup

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

func (*NotificationsGroup) DeepCopyInto added in v0.10.0

func (in *NotificationsGroup) DeepCopyInto(out *NotificationsGroup)

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

type Permissions

type Permissions struct {
	Applications []ApplicationPermissions `json:"applications,omitempty"`
	Teams        []string                 `json:"teams,omitempty"`
	Plugins      []Plugin                 `json:"plugins,omitempty"`
	Resources    []Resources              `json:"resources,omitempty"`
}

func (*Permissions) DeepCopy

func (in *Permissions) DeepCopy() *Permissions

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

func (*Permissions) DeepCopyInto

func (in *Permissions) DeepCopyInto(out *Permissions)

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

type Plugin

type Plugin struct {
	Satellite   string               `json:"satellite"`
	Name        string               `json:"name"`
	Type        string               `json:"type"`
	Permissions apiextensionsv1.JSON `json:"permissions,omitempty"`
}

func (*Plugin) DeepCopy

func (in *Plugin) DeepCopy() *Plugin

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

func (*Plugin) DeepCopyInto

func (in *Plugin) DeepCopyInto(out *Plugin)

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

type Resources

type Resources struct {
	Satellites []string `json:"satellites"`
	Clusters   []string `json:"clusters"`
	Namespaces []string `json:"namespaces"`
	Resources  []string `json:"resources"`
	Verbs      []string `json:"verbs"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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

User is the User CRD.

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

	Items []User `json:"items"`
}

UserList is the structure for a list of User CRs.

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 {
	ID            string                  `json:"id,omitempty" boltholdUnique:"UniqueID"`
	Satellite     string                  `json:"satellite,omitempty"`
	UpdatedAt     int64                   `json:"updatedAt,omitempty"`
	Cluster       string                  `json:"cluster,omitempty"`
	Namespace     string                  `json:"namespace,omitempty"`
	Name          string                  `json:"name,omitempty"`
	ClusterID     string                  `json:"clusterID,omitempty"`
	NamespaceID   string                  `json:"namespaceID,omitempty"`
	Email         string                  `json:"email" boltholdIndex:"Email"`
	Permissions   Permissions             `json:"permissions,omitempty"`
	Dashboards    []dashboardv1.Reference `json:"dashboards,omitempty"`
	Notifications Notifications           `json:"notifications,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