package issuer
import "context"
type Interface interface {
// Setup initialises the issuer.
// It includes:
// - Creating CA and storing it somewhere
Setup(ctx context.Context) error
}
type IssueResponse struct {
// Certificate is the certificate resource that should be stored in the
// target secret.
// It will only be set if the corresponding private key is also set on the
// IssuerResponse structure.
Certificate []byte
// PrivateKey is the private key that should be stored in the target secret.
// If set, the certificate and CA field will also be overwritten with the
// contents of the field.
// If Certificate is not set, the existing Certificate will be overwritten.
PrivateKey []byte
// CA is the CA certificate that should be stored in the target secret.
// This field should only be set if the private key field is set, similar
// to the Certificate field.
CA []byte
}