Documentation ¶
Index ¶
- func GetCertificate(cert *wssdcloudsecurity.Certificate) *security.Certificate
- func GetCertificateType(certType string) (wssdcloudsecurity.CertificateType, bool)
- func GetMocCSR(csr *security.CertificateRequest) (*wssdcloudsecurity.CertificateSigningRequest, string, error)
- func GetWssdCertificate(cert *security.Certificate) (*wssdcloudsecurity.Certificate, error)
- type CertificateClient
- func (c *CertificateClient) CreateOrUpdate(ctx context.Context, group, name string, Certificate *security.Certificate) (*security.Certificate, error)
- func (c *CertificateClient) Delete(ctx context.Context, group, name string) error
- func (c *CertificateClient) Get(ctx context.Context, group, name string) (*[]security.Certificate, error)
- func (c *CertificateClient) Precheck(ctx context.Context, certificates []*security.Certificate) (bool, error)
- func (c *CertificateClient) Renew(ctx context.Context, group, name string, csr *security.CertificateRequest) (*security.Certificate, string, error)
- func (c *CertificateClient) Sign(ctx context.Context, group, name string, csr *security.CertificateRequest) (*security.Certificate, string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificate ¶ added in v0.10.8
func GetCertificate(cert *wssdcloudsecurity.Certificate) *security.Certificate
func GetCertificateType ¶ added in v0.10.18
func GetCertificateType(certType string) (wssdcloudsecurity.CertificateType, bool)
func GetMocCSR ¶ added in v0.10.8
func GetMocCSR(csr *security.CertificateRequest) (*wssdcloudsecurity.CertificateSigningRequest, string, error)
func GetWssdCertificate ¶ added in v0.10.8
func GetWssdCertificate(cert *security.Certificate) (*wssdcloudsecurity.Certificate, error)
Types ¶
type CertificateClient ¶
type CertificateClient struct { security.BaseClient // contains filtered or unexported fields }
Client structure
func NewCertificateClient ¶
func NewCertificateClient(cloudFQDN string, authorizer auth.Authorizer) (*CertificateClient, error)
NewClient method returns new client
func (*CertificateClient) CreateOrUpdate ¶
func (c *CertificateClient) CreateOrUpdate(ctx context.Context, group, name string, Certificate *security.Certificate) (*security.Certificate, error)
CreateOrUpdate methods invokes create or update on the client
func (*CertificateClient) Delete ¶
func (c *CertificateClient) Delete(ctx context.Context, group, name string) error
Delete methods invokes delete of the Certificate resource
func (*CertificateClient) Get ¶
func (c *CertificateClient) Get(ctx context.Context, group, name string) (*[]security.Certificate, error)
Get methods invokes the client Get method
func (*CertificateClient) Precheck ¶ added in v0.19.3
func (c *CertificateClient) Precheck(ctx context.Context, certificates []*security.Certificate) (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 (*CertificateClient) Renew ¶ added in v0.10.7
func (c *CertificateClient) Renew(ctx context.Context, group, name string, csr *security.CertificateRequest) (*security.Certificate, string, error)
Renew methods invokes renew to renew signed-certificate
func (*CertificateClient) Sign ¶ added in v0.10.7
func (c *CertificateClient) Sign(ctx context.Context, group, name string, csr *security.CertificateRequest) (*security.Certificate, string, error)
Sign methods invokes sign to create a CA-Signed Certificate
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]security.Certificate, error) CreateOrUpdate(context.Context, string, string, *security.Certificate) (*security.Certificate, error) Delete(context.Context, string, string) error Sign(context.Context, string, string, *security.CertificateRequest) (*security.Certificate, string, error) Renew(context.Context, string, string, *security.CertificateRequest) (*security.Certificate, string, error) Precheck(ctx context.Context, certificates []*security.Certificate) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.