Documentation ¶
Index ¶
- type ClusterRoleAdditionalOptions
- type ClusterRoleBindingAdditionalOptions
- type ClusterRoleBindingBuilder
- func (builder *ClusterRoleBindingBuilder) Create() (*ClusterRoleBindingBuilder, error)
- func (builder *ClusterRoleBindingBuilder) Delete() error
- func (builder *ClusterRoleBindingBuilder) Exists() bool
- func (builder *ClusterRoleBindingBuilder) Update() (*ClusterRoleBindingBuilder, error)
- func (builder *ClusterRoleBindingBuilder) WithOptions(options ...ClusterRoleBindingAdditionalOptions) *ClusterRoleBindingBuilder
- func (builder *ClusterRoleBindingBuilder) WithSubjects(subjects []rbacv1.Subject) *ClusterRoleBindingBuilder
- type ClusterRoleBuilder
- func (builder *ClusterRoleBuilder) Create() (*ClusterRoleBuilder, error)
- func (builder *ClusterRoleBuilder) Delete() error
- func (builder *ClusterRoleBuilder) Exists() bool
- func (builder *ClusterRoleBuilder) Update() (*ClusterRoleBuilder, error)
- func (builder *ClusterRoleBuilder) WithOptions(options ...ClusterRoleAdditionalOptions) *ClusterRoleBuilder
- func (builder *ClusterRoleBuilder) WithRules(rules []rbacv1.PolicyRule) *ClusterRoleBuilder
- type RoleAdditionalOptions
- type RoleBindingAdditionalOptions
- type RoleBindingBuilder
- func (builder *RoleBindingBuilder) Create() (*RoleBindingBuilder, error)
- func (builder *RoleBindingBuilder) Delete() error
- func (builder *RoleBindingBuilder) Exists() bool
- func (builder *RoleBindingBuilder) Update() (*RoleBindingBuilder, error)
- func (builder *RoleBindingBuilder) WithOptions(options ...RoleBindingAdditionalOptions) *RoleBindingBuilder
- func (builder *RoleBindingBuilder) WithSubjects(subjects []rbacv1.Subject) *RoleBindingBuilder
- type RoleBuilder
- func (builder *RoleBuilder) Create() (*RoleBuilder, error)
- func (builder *RoleBuilder) Delete() error
- func (builder *RoleBuilder) Exists() bool
- func (builder *RoleBuilder) Update() (*RoleBuilder, error)
- func (builder *RoleBuilder) WithOptions(options ...RoleAdditionalOptions) *RoleBuilder
- func (builder *RoleBuilder) WithRules(rules []rbacv1.PolicyRule) *RoleBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterRoleAdditionalOptions ¶
type ClusterRoleAdditionalOptions func(builder *ClusterRoleBuilder) (*ClusterRoleBuilder, error)
ClusterRoleAdditionalOptions additional options for ClusterRole object.
type ClusterRoleBindingAdditionalOptions ¶
type ClusterRoleBindingAdditionalOptions func(builder *ClusterRoleBindingBuilder) (*ClusterRoleBindingBuilder, error)
ClusterRoleBindingAdditionalOptions additional options for ClusterRoleBinding object.
type ClusterRoleBindingBuilder ¶
type ClusterRoleBindingBuilder struct { // Clusterrolebinding definition. Used to create a clusterrolebinding object. Definition *rbacv1.ClusterRoleBinding // Created clusterrolebinding object Object *rbacv1.ClusterRoleBinding // contains filtered or unexported fields }
ClusterRoleBindingBuilder provides struct for clusterrolebinding object containing connection to the cluster and the clusterrolebinding definitions.
func NewClusterRoleBindingBuilder ¶
func NewClusterRoleBindingBuilder( apiClient *clients.Settings, name, clusterRole string, subject rbacv1.Subject) *ClusterRoleBindingBuilder
NewClusterRoleBindingBuilder creates a new instance of ClusterRoleBindingBuilder.
func PullClusterRoleBinding ¶
func PullClusterRoleBinding(apiClient *clients.Settings, name string) (*ClusterRoleBindingBuilder, error)
PullClusterRoleBinding pulls existing clusterrolebinding from cluster.
func (*ClusterRoleBindingBuilder) Create ¶
func (builder *ClusterRoleBindingBuilder) Create() (*ClusterRoleBindingBuilder, error)
Create generates a clusterrolebinding in the cluster and stores the created object in struct.
func (*ClusterRoleBindingBuilder) Delete ¶
func (builder *ClusterRoleBindingBuilder) Delete() error
Delete removes a clusterrolebinding from the cluster.
func (*ClusterRoleBindingBuilder) Exists ¶
func (builder *ClusterRoleBindingBuilder) Exists() bool
Exists checks if clusterrolebinding exists in the cluster.
func (*ClusterRoleBindingBuilder) Update ¶
func (builder *ClusterRoleBindingBuilder) Update() (*ClusterRoleBindingBuilder, error)
Update modifies a clusterrolebinding object in the cluster.
func (*ClusterRoleBindingBuilder) WithOptions ¶
func (builder *ClusterRoleBindingBuilder) WithOptions( options ...ClusterRoleBindingAdditionalOptions) *ClusterRoleBindingBuilder
WithOptions creates ClusterRoleBinding with generic mutation options.
func (*ClusterRoleBindingBuilder) WithSubjects ¶
func (builder *ClusterRoleBindingBuilder) WithSubjects(subjects []rbacv1.Subject) *ClusterRoleBindingBuilder
WithSubjects appends additional subjects to clusterrolebinding definition.
type ClusterRoleBuilder ¶
type ClusterRoleBuilder struct { // Clusterrole definition. Used to create a clusterrole object. Definition *rbacv1.ClusterRole // Created clusterrole object Object *rbacv1.ClusterRole // contains filtered or unexported fields }
ClusterRoleBuilder provides struct for clusterrole object
containing connection to the cluster and the clusterrole definitions.
func NewClusterRoleBuilder ¶
func NewClusterRoleBuilder(apiClient *clients.Settings, name string, rule rbacv1.PolicyRule) *ClusterRoleBuilder
NewClusterRoleBuilder creates new instance of ClusterRoleBuilder.
func PullClusterRole ¶
func PullClusterRole(apiClient *clients.Settings, name string) (*ClusterRoleBuilder, error)
PullClusterRole pulls existing clusterrole from cluster.
func (*ClusterRoleBuilder) Create ¶
func (builder *ClusterRoleBuilder) Create() (*ClusterRoleBuilder, error)
Create generates a clusterrole in the cluster and stores the created object in struct.
func (*ClusterRoleBuilder) Delete ¶
func (builder *ClusterRoleBuilder) Delete() error
Delete removes a clusterrole from the cluster.
func (*ClusterRoleBuilder) Exists ¶
func (builder *ClusterRoleBuilder) Exists() bool
Exists checks if a clusterrole exists in the cluster.
func (*ClusterRoleBuilder) Update ¶
func (builder *ClusterRoleBuilder) Update() (*ClusterRoleBuilder, error)
Update modifies a clusterrole object in the cluster.
func (*ClusterRoleBuilder) WithOptions ¶
func (builder *ClusterRoleBuilder) WithOptions(options ...ClusterRoleAdditionalOptions) *ClusterRoleBuilder
WithOptions creates ClusterRole with generic mutation options.
func (*ClusterRoleBuilder) WithRules ¶
func (builder *ClusterRoleBuilder) WithRules(rules []rbacv1.PolicyRule) *ClusterRoleBuilder
WithRules appends additional rules to the clusterrole definition.
type RoleAdditionalOptions ¶
type RoleAdditionalOptions func(builder *RoleBuilder) (*RoleBuilder, error)
RoleAdditionalOptions additional options for Role object.
type RoleBindingAdditionalOptions ¶
type RoleBindingAdditionalOptions func(builder *RoleBindingBuilder) (*RoleBindingBuilder, error)
RoleBindingAdditionalOptions additional options for RoleBinding object.
type RoleBindingBuilder ¶
type RoleBindingBuilder struct { // Rolebinding definition. Used to create rolebinding object Definition *rbacv1.RoleBinding // Created rolebinding object Object *rbacv1.RoleBinding // contains filtered or unexported fields }
RoleBindingBuilder provides struct for RoleBinding object containing connection to the cluster RoleBinding definition.
func NewRoleBindingBuilder ¶
func NewRoleBindingBuilder(apiClient *clients.Settings, name, nsname, role string, subject rbacv1.Subject) *RoleBindingBuilder
NewRoleBindingBuilder creates new instance of RoleBindingBuilder.
func PullRoleBinding ¶
func PullRoleBinding(apiClient *clients.Settings, name, nsname string) (*RoleBindingBuilder, error)
PullRoleBinding pulls existing rolebinding from cluster.
func (*RoleBindingBuilder) Create ¶
func (builder *RoleBindingBuilder) Create() (*RoleBindingBuilder, error)
Create generates a RoleBinding and stores the created object in struct.
func (*RoleBindingBuilder) Delete ¶
func (builder *RoleBindingBuilder) Delete() error
Delete removes a RoleBinding.
func (*RoleBindingBuilder) Exists ¶
func (builder *RoleBindingBuilder) Exists() bool
Exists checks whether the given RoleBinding exists.
func (*RoleBindingBuilder) Update ¶
func (builder *RoleBindingBuilder) Update() (*RoleBindingBuilder, error)
Update modifies an existing RoleBinding in the cluster.
func (*RoleBindingBuilder) WithOptions ¶
func (builder *RoleBindingBuilder) WithOptions(options ...RoleBindingAdditionalOptions) *RoleBindingBuilder
WithOptions creates RoleBinding with generic mutation options.
func (*RoleBindingBuilder) WithSubjects ¶
func (builder *RoleBindingBuilder) WithSubjects(subjects []rbacv1.Subject) *RoleBindingBuilder
WithSubjects adds specified Subject to the RoleBinding.
type RoleBuilder ¶
type RoleBuilder struct { // Role definition. Used to create a role object Definition *rbacv1.Role // Created role object Object *rbacv1.Role // contains filtered or unexported fields }
RoleBuilder provides a struct for role object containing connection to the cluster and the role definitions.
func NewRoleBuilder ¶
func NewRoleBuilder(apiClient *clients.Settings, name, nsname string, rule rbacv1.PolicyRule) *RoleBuilder
NewRoleBuilder create a new instance of RoleBuilder.
func PullRole ¶
func PullRole(apiClient *clients.Settings, name, nsname string) (*RoleBuilder, error)
PullRole pulls existing role from cluster.
func (*RoleBuilder) Create ¶
func (builder *RoleBuilder) Create() (*RoleBuilder, error)
Create makes a Role in the cluster and stores the created object in struct.
func (*RoleBuilder) Exists ¶
func (builder *RoleBuilder) Exists() bool
Exists checks whether the given Role exists.
func (*RoleBuilder) Update ¶
func (builder *RoleBuilder) Update() (*RoleBuilder, error)
Update modifies the existing Role object with role definition in builder.
func (*RoleBuilder) WithOptions ¶
func (builder *RoleBuilder) WithOptions( options ...RoleAdditionalOptions) *RoleBuilder
WithOptions creates Role with generic mutation options.
func (*RoleBuilder) WithRules ¶
func (builder *RoleBuilder) WithRules(rules []rbacv1.PolicyRule) *RoleBuilder
WithRules adds the specified PolicyRule to the Role.