Documentation ¶
Index ¶
- type IdentityClient
- func (c *IdentityClient) CreateCertificate(ctx context.Context, group, name string, csr []*security.CertificateRequest) ([]*security.Certificate, string, error)
- func (c *IdentityClient) CreateOrUpdate(ctx context.Context, group, name string, identity *security.Identity) (*security.Identity, error)
- func (c *IdentityClient) Delete(ctx context.Context, group, name string) error
- func (c *IdentityClient) Get(ctx context.Context, group, name string) (*[]security.Identity, error)
- func (c *IdentityClient) Precheck(ctx context.Context, identities []*security.Identity) (bool, error)
- func (c *IdentityClient) RenewCertificate(ctx context.Context, group, name string, csr []*security.CertificateRequest) ([]*security.Certificate, string, error)
- func (c *IdentityClient) Revoke(ctx context.Context, group, name string) (*security.Identity, error)
- func (c *IdentityClient) Rotate(ctx context.Context, group, name string) (*security.Identity, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityClient ¶
type IdentityClient struct { security.BaseClient // contains filtered or unexported fields }
Client structure
func NewIdentityClient ¶
func NewIdentityClient(cloudFQDN string, authorizer auth.Authorizer) (*IdentityClient, error)
NewClient method returns new client
func (*IdentityClient) CreateCertificate ¶ added in v0.10.8
func (c *IdentityClient) CreateCertificate(ctx context.Context, group, name string, csr []*security.CertificateRequest) ([]*security.Certificate, string, error)
CreateCertificate methods invokes creates client certificate for the identity
func (*IdentityClient) CreateOrUpdate ¶
func (c *IdentityClient) CreateOrUpdate(ctx context.Context, group, name string, identity *security.Identity) (*security.Identity, error)
CreateOrUpdate methods invokes create or update on the client
func (*IdentityClient) Delete ¶
func (c *IdentityClient) Delete(ctx context.Context, group, name string) error
Delete methods invokes delete of the Identity resource
func (*IdentityClient) Precheck ¶ added in v0.19.3
func (c *IdentityClient) Precheck(ctx context.Context, identities []*security.Identity) (bool, error)
Prechecks whether the system is able to create specified resources. Returns true if it is possible; or false with reason in error message if not.
func (*IdentityClient) RenewCertificate ¶ added in v0.10.8
func (c *IdentityClient) RenewCertificate(ctx context.Context, group, name string, csr []*security.CertificateRequest) ([]*security.Certificate, string, error)
RenewCertificate methods invokes renew client certificate for the identity
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]security.Identity, error) CreateOrUpdate(context.Context, string, string, *security.Identity) (*security.Identity, error) Delete(context.Context, string, string) error Revoke(context.Context, string, string) (*security.Identity, error) Rotate(context.Context, string, string) (*security.Identity, error) CreateCertificate(context.Context, string, string, []*security.CertificateRequest) ([]*security.Certificate, string, error) RenewCertificate(context.Context, string, string, []*security.CertificateRequest) ([]*security.Certificate, string, error) Precheck(ctx context.Context, identities []*security.Identity) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.