Documentation ¶
Index ¶
- Constants
- func Status(ctx context.Context, stateInfo state.StateInfo, ...) (module.CaCertStatus, error)
- func ValidateEnrollmentStatus(ctx context.Context, stateInfo state.StateInfo) (readyCount int, err error)
- func VerifyEnrollmentState(ctx context.Context, stateInfo state.StateInfo) (enrollmentContextID string, err error)
- type EnrollmentContext
- func (enrollCtx *EnrollmentContext) Instantiate(ctx context.Context) error
- func (enrollCtx *EnrollmentContext) IssuingClusterHandle(ctx context.Context) (interface{}, error)
- func (enrollCtx *EnrollmentContext) Terminate(ctx context.Context) error
- func (enrollCtx *EnrollmentContext) Update(ctx context.Context, contextID string) error
- type EnrollmentResource
Constants ¶
View Source
const AppName string = "cert-enrollment"
Variables ¶
This section is empty.
Functions ¶
func Status ¶
func Status(ctx context.Context, stateInfo state.StateInfo, qInstance, qType, qOutput string, fApps, fClusters, fResources []string) (module.CaCertStatus, error)
Status provides the caCert enrollment status
Types ¶
type EnrollmentContext ¶
type EnrollmentContext struct { AppContext appcontext.AppContext AppHandle interface{} CaCert module.CaCert // CA ContextID string ResOrder []string ClientName string ClusterGroups []module.ClusterGroup ClusterGroup module.ClusterGroup IssuerHandle interface{} Cluster string Resources EnrollmentResource Project string Namespace string LogicalCloud string }
EnrollmentContext holds the caCert enrollment details
func (*EnrollmentContext) Instantiate ¶
func (enrollCtx *EnrollmentContext) Instantiate(ctx context.Context) error
Instantiate the caCert enrollment
func (*EnrollmentContext) IssuingClusterHandle ¶
func (enrollCtx *EnrollmentContext) IssuingClusterHandle(ctx context.Context) (interface{}, error)
IssuingClusterHandle returns the handle of certificate issuing cluster
type EnrollmentResource ¶
type EnrollmentResource struct { CertificateRequest map[string]*cmv1.CertificateRequest Certificate map[string]*cmv1.Certificate }
EnrollmentResource holds the resources created for the caCert enrollment
Click to show internal directories.
Click to hide internal directories.