Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=optiputer.net
Index ¶
- Constants
- Variables
- func CreateCRD(clientset apiextcs.Interface) error
- func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)
- func Resource(resource string) schema.GroupResource
- type CrdClient
- func (f *CrdClient) Create(obj *PRPUser) (*PRPUser, error)
- func (f *CrdClient) Delete(name string, options *meta_v1.DeleteOptions) error
- func (f *CrdClient) Get(name string) (*PRPUser, error)
- func (f *CrdClient) List(opts meta_v1.ListOptions) (*PRPUserList, error)
- func (f *CrdClient) NewListWatch() *cache.ListWatch
- func (f *CrdClient) Update(obj *PRPUser) (*PRPUser, error)
- type PRPUser
- func (user PRPUser) CheckShouldUnpromote()
- func (user PRPUser) GetUserClientset() (*kubernetes.Clientset, error)
- func (user PRPUser) GetUserNamespaces() (adminNS []string, userNS []string, curErr error)
- func (user PRPUser) IsAdmin(ns string) bool
- func (user PRPUser) IsGuest() bool
- func (user PRPUser) IsSuperAdmin() bool
- func (user PRPUser) IsUser(ns string) bool
- type PRPUserList
- type PRPUserSpec
Constants ¶
Variables ¶
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "optiputer.net", Version: "v1"}
schemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type CrdClient ¶
type CrdClient struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false
func MakeCrdClient ¶
func (*CrdClient) Delete ¶
func (f *CrdClient) Delete(name string, options *meta_v1.DeleteOptions) error
func (*CrdClient) List ¶
func (f *CrdClient) List(opts meta_v1.ListOptions) (*PRPUserList, error)
func (*CrdClient) NewListWatch ¶
Create a new List watch for our TPR
type PRPUser ¶
type PRPUser struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` Spec PRPUserSpec `json:"spec"` }
+genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (PRPUser) CheckShouldUnpromote ¶
func (user PRPUser) CheckShouldUnpromote()
func (PRPUser) GetUserClientset ¶
func (user PRPUser) GetUserClientset() (*kubernetes.Clientset, error)
func (PRPUser) GetUserNamespaces ¶
func (PRPUser) IsSuperAdmin ¶
Click to show internal directories.
Click to hide internal directories.