v1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API

Index

Constants

View Source
const AccessGrantDenied = "denied"
View Source
const AccessGrantGranted = "granted"

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: accessrequests.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 AccessGrant

type AccessGrant struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec AccessGrantSpec `json:"spec"`

	Status string `json:"status"`
}

AccessGrant is a request to a particular API.

func (*AccessGrant) DeepCopy

func (in *AccessGrant) DeepCopy() *AccessGrant

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

func (*AccessGrant) DeepCopyInto

func (in *AccessGrant) DeepCopyInto(out *AccessGrant)

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

func (*AccessGrant) DeepCopyObject

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

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

type AccessGrantList

type AccessGrantList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

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

AccessGrantList is a list of AccessGrant resources

func (*AccessGrantList) DeepCopy

func (in *AccessGrantList) DeepCopy() *AccessGrantList

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

func (*AccessGrantList) DeepCopyInto

func (in *AccessGrantList) DeepCopyInto(out *AccessGrantList)

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

func (*AccessGrantList) DeepCopyObject

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

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

type AccessGrantSpec

type AccessGrantSpec struct {
	GrantedBy *authenticationv1.UserInfo `json:"grantedBy"`
	GrantFor  string                     `json:"grantFor"`
}

AccessGrantSpec specifies what is being requested access to.

func (*AccessGrantSpec) DeepCopy

func (in *AccessGrantSpec) DeepCopy() *AccessGrantSpec

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

func (*AccessGrantSpec) DeepCopyInto

func (in *AccessGrantSpec) DeepCopyInto(out *AccessGrantSpec)

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

type AccessRequest

type AccessRequest struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec AccessRequestSpec `json:"spec"`
}

AccessRequest is a request to a particular API.

func (*AccessRequest) DeepCopy

func (in *AccessRequest) DeepCopy() *AccessRequest

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

func (*AccessRequest) DeepCopyInto

func (in *AccessRequest) DeepCopyInto(out *AccessRequest)

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

func (*AccessRequest) DeepCopyObject

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

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

type AccessRequestForObject

type AccessRequestForObject struct {
	Resource    metav1.GroupVersionResource `json:"resource"`
	SubResource string                      `json:"subResource"`
	Name        string                      `json:"name"`
	Namespace   string                      `json:"namespace"`
}

func (*AccessRequestForObject) DeepCopy

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

func (*AccessRequestForObject) DeepCopyInto

func (in *AccessRequestForObject) DeepCopyInto(out *AccessRequestForObject)

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

type AccessRequestList

type AccessRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

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

AccessRequestList is a list of AccessRequest resources

func (*AccessRequestList) DeepCopy

func (in *AccessRequestList) DeepCopy() *AccessRequestList

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

func (*AccessRequestList) DeepCopyInto

func (in *AccessRequestList) DeepCopyInto(out *AccessRequestList)

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

func (*AccessRequestList) DeepCopyObject

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

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

type AccessRequestSpec

type AccessRequestSpec struct {
	UserInfo    *authenticationv1.UserInfo `json:"userInfo"`
	ForObject   AccessRequestForObject     `json:"forObject"`
	ValidFor    string                     `json:"validFor,omitempty"`
	ExecOptions *corev1.PodExecOptions     `json:"execOptions"`
	CustomKeys  map[string]string          `json:"customKeys"`
}

AccessRequestSpec specifies what is being requested access to.

func (*AccessRequestSpec) DeepCopy

func (in *AccessRequestSpec) DeepCopy() *AccessRequestSpec

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

func (*AccessRequestSpec) DeepCopyInto

func (in *AccessRequestSpec) DeepCopyInto(out *AccessRequestSpec)

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