Documentation ¶
Index ¶
- func ConvertToSecurityPolicy(obj runtime.Object) (*api.SecurityPolicy, error)
- func FromPodSecurityPolicy(in *policy.PodSecurityPolicy) *api.SecurityPolicy
- func FromSecurityContextConstraints(in *scc.SecurityContextConstraints) *api.SecurityPolicy
- func ToPodSecurityPolicy(in *api.SecurityPolicy) *policy.PodSecurityPolicy
- func ToSecurityContextConstraints(in *api.SecurityPolicy) *scc.SecurityContextConstraints
- type Client
- type Interface
- type SecurityPoliciesGetter
- type SecurityPolicyInterface
- type SecurityPolicyTransformerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToSecurityPolicy ¶
func ConvertToSecurityPolicy(obj runtime.Object) (*api.SecurityPolicy, error)
func FromPodSecurityPolicy ¶
func FromPodSecurityPolicy(in *policy.PodSecurityPolicy) *api.SecurityPolicy
func FromSecurityContextConstraints ¶
func FromSecurityContextConstraints(in *scc.SecurityContextConstraints) *api.SecurityPolicy
func ToPodSecurityPolicy ¶
func ToPodSecurityPolicy(in *api.SecurityPolicy) *policy.PodSecurityPolicy
func ToSecurityContextConstraints ¶
func ToSecurityContextConstraints(in *api.SecurityPolicy) *scc.SecurityContextConstraints
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to interact with features provided by the storage.k8s.io group.
func New ¶
func New(kc kubernetes.Interface, oc occ.Interface) *Client
New creates a new Client for the given RESTClient.
func NewForConfig ¶
NewForConfig creates a new Client for the given config.
func NewForConfigOrDie ¶
NewForConfigOrDie creates a new Client for the given config and panics if there is an error in the config.
func (*Client) SecurityPolicies ¶
func (c *Client) SecurityPolicies() SecurityPolicyInterface
type Interface ¶
type Interface interface { SecurityPoliciesGetter }
type SecurityPoliciesGetter ¶
type SecurityPoliciesGetter interface {
SecurityPolicies() SecurityPolicyInterface
}
SecurityPoliciesGetter has a method to return a SecurityPolicyInterface. A group's client should implement this interface.
type SecurityPolicyInterface ¶
type SecurityPolicyInterface interface { Create(ctx context.Context, obj *api.SecurityPolicy, opts metav1.CreateOptions) (*api.SecurityPolicy, error) Delete(ctx context.Context, obj runtime.Object, opts metav1.DeleteOptions) error Get(ctx context.Context, obj runtime.Object, opts metav1.GetOptions) (*api.SecurityPolicy, error) List(ctx context.Context, opts metav1.ListOptions) (*api.SecurityPolicyList, error) Patch(ctx context.Context, cur *api.SecurityPolicy, transform SecurityPolicyTransformerFunc, opts metav1.PatchOptions) (*api.SecurityPolicy, kutil.VerbType, error) PatchObject(ctx context.Context, cur, mod *api.SecurityPolicy, opts metav1.PatchOptions) (*api.SecurityPolicy, kutil.VerbType, error) CreateOrPatch(ctx context.Context, obj runtime.Object, transform SecurityPolicyTransformerFunc, opts metav1.PatchOptions) (*api.SecurityPolicy, kutil.VerbType, error) }
SecurityPolicyInterface has methods to work with SecurityPolicy resources.
type SecurityPolicyTransformerFunc ¶
type SecurityPolicyTransformerFunc func(*api.SecurityPolicy) *api.SecurityPolicy
Click to show internal directories.
Click to hide internal directories.