Documentation ¶
Index ¶
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() error
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*securityV1.SecurityContextConstraints, error)
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WithAllowCapabilities(allowCapabilities []corev1.Capability) *Builder
- func (builder *Builder) WithDefaultAddCapabilities(defaultAddCapabilities []corev1.Capability) *Builder
- func (builder *Builder) WithDropCapabilities(requiredDropCapabilities []corev1.Capability) *Builder
- func (builder *Builder) WithFSGroup(fsGroup string) *Builder
- func (builder *Builder) WithFSGroupRange(fsGroupMin, fsGroupMax int64) *Builder
- func (builder *Builder) WithGroups(groups []string) *Builder
- func (builder *Builder) WithHostDirVolumePlugin(allowPlugin bool) *Builder
- func (builder *Builder) WithHostIPC(allowHostIPC bool) *Builder
- func (builder *Builder) WithHostNetwork(allowHostNetwork bool) *Builder
- func (builder *Builder) WithHostPID(allowHostPID bool) *Builder
- func (builder *Builder) WithHostPorts(allowHostPorts bool) *Builder
- func (builder *Builder) WithPriority(priority *int32) *Builder
- func (builder *Builder) WithPrivilegedContainer(allowPrivileged bool) *Builder
- func (builder *Builder) WithPrivilegedEscalation(allowPrivilegedEscalation bool) *Builder
- func (builder *Builder) WithReadOnlyRootFilesystem(readOnlyRootFilesystem bool) *Builder
- func (builder *Builder) WithSeccompProfiles(seccompProfiles []string) *Builder
- func (builder *Builder) WithSupplementalGroups(supplementalGroupsType string) *Builder
- func (builder *Builder) WithUsers(users []string) *Builder
- func (builder *Builder) WithVolumes(volumes []securityV1.FSType) *Builder
- type SecurityContextConstraintsAdditionalOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // SecurityContextConstraints definition. Used to create SecurityContextConstraints object Definition *securityV1.SecurityContextConstraints // Created SecurityContextConstraints object Object *securityV1.SecurityContextConstraints // contains filtered or unexported fields }
Builder provides struct for SecurityContextConstraints object containing connection to the cluster SecurityContextConstraints definition.
func NewBuilder ¶
NewBuilder creates new instance of Builder.
func (*Builder) Create ¶
Create generates a SecurityContextConstraints and stores the created object in struct.
func (*Builder) Get ¶
func (builder *Builder) Get() (*securityV1.SecurityContextConstraints, error)
Get returns NMState object if found.
func (*Builder) WithAllowCapabilities ¶
func (builder *Builder) WithAllowCapabilities(allowCapabilities []corev1.Capability) *Builder
WithAllowCapabilities adds list of allow capabilities to SecurityContextConstraints.
func (*Builder) WithDefaultAddCapabilities ¶
func (builder *Builder) WithDefaultAddCapabilities(defaultAddCapabilities []corev1.Capability) *Builder
WithDefaultAddCapabilities adds list of defaultAddCapabilities to SecurityContextConstraints.
func (*Builder) WithDropCapabilities ¶
func (builder *Builder) WithDropCapabilities(requiredDropCapabilities []corev1.Capability) *Builder
WithDropCapabilities adds list of drop capabilities to SecurityContextConstraints.
func (*Builder) WithFSGroup ¶
WithFSGroup adds fsGroup to SecurityContextConstraints.
func (*Builder) WithFSGroupRange ¶
WithFSGroupRange adds fsGroupRange to SecurityContextConstraints.
func (*Builder) WithGroups ¶
WithGroups adds groups to SecurityContextConstraints.
func (*Builder) WithHostDirVolumePlugin ¶
WithHostDirVolumePlugin adds bool flag to the allowHostDirVolumePlugin of SecurityContextConstraints.
func (*Builder) WithHostIPC ¶
WithHostIPC adds bool flag to the allowHostIPC of SecurityContextConstraints.
func (*Builder) WithHostNetwork ¶
WithHostNetwork adds bool flag to the allowHostNetwork of SecurityContextConstraints.
func (*Builder) WithHostPID ¶
WithHostPID adds bool flag to the allowHostPID of SecurityContextConstraints.
func (*Builder) WithHostPorts ¶
WithHostPorts adds bool flag to the allowHostPorts of SecurityContextConstraints.
func (*Builder) WithPriority ¶
WithPriority adds priority to SecurityContextConstraints.
func (*Builder) WithPrivilegedContainer ¶
WithPrivilegedContainer adds bool flag to the allowPrivilegedContainer of SecurityContextConstraints.
func (*Builder) WithPrivilegedEscalation ¶
WithPrivilegedEscalation adds bool flag to the allowPrivilegeEscalation of SecurityContextConstraints.
func (*Builder) WithReadOnlyRootFilesystem ¶
WithReadOnlyRootFilesystem adds bool flag to the readOnlyRootFilesystem of SecurityContextConstraints.
func (*Builder) WithSeccompProfiles ¶
WithSeccompProfiles adds list of seccompProfiles to SecurityContextConstraints.
func (*Builder) WithSupplementalGroups ¶
WithSupplementalGroups adds SupplementalGroups to SecurityContextConstraints.
func (*Builder) WithVolumes ¶
func (builder *Builder) WithVolumes(volumes []securityV1.FSType) *Builder
WithVolumes adds list of volumes to SecurityContextConstraints.
type SecurityContextConstraintsAdditionalOptions ¶
SecurityContextConstraintsAdditionalOptions additional options for SecurityContextConstraints object.