Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterRoleBindingKind = resource.Kind{ Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRoleBinding", Scoped: false, }
View Source
var ClusterRoleBindingResource = resource.Type{ Kind: ClusterRoleBindingKind, Name: "clusterrolebindings", }
View Source
var ClusterRoleKind = resource.Kind{ Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRole", Scoped: false, }
View Source
var ClusterRoleResource = resource.Type{ Kind: ClusterRoleKind, Name: "clusterroles", }
View Source
var RoleBindingKind = resource.Kind{ Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "RoleBinding", Scoped: true, }
View Source
var RoleBindingResource = resource.Type{ Kind: RoleBindingKind, Name: "rolebindings", }
View Source
var RoleKind = resource.Kind{ Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "Role", Scoped: true, }
View Source
var RoleResource = resource.Type{ Kind: RoleKind, Name: "roles", }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ClusterRolesClient ClusterRoleBindingsClient RolesClient RoleBindingsClient }
type ClusterRole ¶
type ClusterRole struct { *resource.Resource Object *rbacv1.ClusterRole }
func NewClusterRole ¶
func NewClusterRole(clusterRole *rbacv1.ClusterRole, client resource.Client) *ClusterRole
func (*ClusterRole) Delete ¶
func (r *ClusterRole) Delete() error
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { *resource.Resource Object *rbacv1.ClusterRoleBinding }
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(clusterRoleBinding *rbacv1.ClusterRoleBinding, client resource.Client) *ClusterRoleBinding
func (*ClusterRoleBinding) Delete ¶
func (r *ClusterRoleBinding) Delete() error
type ClusterRoleBindingsClient ¶
type ClusterRoleBindingsClient interface {
ClusterRoleBindings() ClusterRoleBindingsReader
}
func NewClusterRoleBindingsClient ¶
func NewClusterRoleBindingsClient(resources resource.Client, filter resource.Filter) ClusterRoleBindingsClient
type ClusterRoleBindingsReader ¶
type ClusterRoleBindingsReader interface { Get(name string) (*ClusterRoleBinding, error) List() ([]*ClusterRoleBinding, error) }
func NewClusterRoleBindingsReader ¶
func NewClusterRoleBindingsReader(client resource.Client, filter resource.Filter) ClusterRoleBindingsReader
type ClusterRolesClient ¶
type ClusterRolesClient interface {
ClusterRoles() ClusterRolesReader
}
func NewClusterRolesClient ¶
func NewClusterRolesClient(resources resource.Client, filter resource.Filter) ClusterRolesClient
type ClusterRolesReader ¶
type ClusterRolesReader interface { Get(name string) (*ClusterRole, error) List() ([]*ClusterRole, error) }
func NewClusterRolesReader ¶
func NewClusterRolesReader(client resource.Client, filter resource.Filter) ClusterRolesReader
type RoleBinding ¶
type RoleBinding struct { *resource.Resource Object *rbacv1.RoleBinding }
func NewRoleBinding ¶
func NewRoleBinding(roleBinding *rbacv1.RoleBinding, client resource.Client) *RoleBinding
func (*RoleBinding) Delete ¶
func (r *RoleBinding) Delete() error
type RoleBindingsClient ¶
type RoleBindingsClient interface {
RoleBindings() RoleBindingsReader
}
func NewRoleBindingsClient ¶
func NewRoleBindingsClient(resources resource.Client, filter resource.Filter) RoleBindingsClient
type RoleBindingsReader ¶
type RoleBindingsReader interface { Get(name string) (*RoleBinding, error) List() ([]*RoleBinding, error) }
func NewRoleBindingsReader ¶
func NewRoleBindingsReader(client resource.Client, filter resource.Filter) RoleBindingsReader
type RolesClient ¶
type RolesClient interface {
Roles() RolesReader
}
func NewRolesClient ¶
func NewRolesClient(resources resource.Client, filter resource.Filter) RolesClient
type RolesReader ¶
func NewRolesReader ¶
func NewRolesReader(client resource.Client, filter resource.Filter) RolesReader
Click to show internal directories.
Click to hide internal directories.