Documentation ¶
Overview ¶
Package v1 has client method used to deal with iam resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIV1Client ¶
type APIV1Client struct {
// contains filtered or unexported fields
}
APIV1Client is used to interact with features provided by the group.
func New ¶
func New(c rest.Interface) *APIV1Client
New creates a new APIV1Client for the given RESTClient.
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*APIV1Client, error)
NewForConfig creates a new APIV1Client for the given config.
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *rest.Config) *APIV1Client
NewForConfigOrDie creates a new APIV1Client for the given config and panics if there is an error in the config.
func (*APIV1Client) Policies ¶
func (c *APIV1Client) Policies() PolicyInterface
Policies create and return policy rest client.
func (*APIV1Client) RESTClient ¶
func (c *APIV1Client) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*APIV1Client) Secrets ¶
func (c *APIV1Client) Secrets() SecretInterface
Secrets create and return secret rest client.
func (*APIV1Client) Users ¶
func (c *APIV1Client) Users() UserInterface
Users create and return user rest client.
type APIV1Interface ¶
type APIV1Interface interface { RESTClient() rest.Interface SecretsGetter UsersGetter PoliciesGetter }
APIV1Interface has methods to work with iam resources.
type PoliciesGetter ¶
type PoliciesGetter interface {
Policies() PolicyInterface
}
PoliciesGetter has a method to return a PolicyInterface. A group's client should implement this interface.
type PolicyExpansion ¶
type PolicyExpansion interface{}
The PolicyExpansion interface allows manually adding extra methods to the PolicyInterface.
type PolicyInterface ¶
type PolicyInterface interface { Create(ctx context.Context, policy *v1.Policy, opts metav1.CreateOptions) (*v1.Policy, error) Update(ctx context.Context, policy *v1.Policy, opts metav1.UpdateOptions) (*v1.Policy, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Policy, error) List(ctx context.Context, opts metav1.ListOptions) (*v1.PolicyList, error) PolicyExpansion }
PolicyInterface has methods to work with Policy resources.
type SecretExpansion ¶
type SecretExpansion interface{}
The SecretExpansion interface allows manually adding extra methods to the SecretInterface.
type SecretInterface ¶
type SecretInterface interface { Create(ctx context.Context, secret *v1.Secret, opts metav1.CreateOptions) (*v1.Secret, error) Update(ctx context.Context, secret *v1.Secret, opts metav1.UpdateOptions) (*v1.Secret, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Secret, error) List(ctx context.Context, opts metav1.ListOptions) (*v1.SecretList, error) SecretExpansion }
SecretInterface has methods to work with Secret resources.
type SecretsGetter ¶
type SecretsGetter interface {
Secrets() SecretInterface
}
SecretsGetter has a method to return a SecretInterface. A group's client should implement this interface.
type UserExpansion ¶
type UserExpansion interface { }
The UserExpansion interface allows manually adding extra methods to the UserInterface.
type UserInterface ¶
type UserInterface interface { Create(ctx context.Context, user *v1.User, opts metav1.CreateOptions) (*v1.User, error) Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) (*v1.User, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.User, error) List(ctx context.Context, opts metav1.ListOptions) (*v1.UserList, error) UserExpansion }
UserInterface has methods to work with User resources.
type UsersGetter ¶
type UsersGetter interface {
Users() UserInterface
}
UsersGetter has a method to return a UserInterface. A group's client should implement this interface.