enrollment

package
v0.0.0-...-bb2f907 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func ValidateEnrollmentStatus

func ValidateEnrollmentStatus(ctx context.Context, stateInfo state.StateInfo) (readyCount int, err error)

ValidateEnrollmentStatus verify the caCert enrollment status

func VerifyEnrollmentState

func VerifyEnrollmentState(ctx context.Context, stateInfo state.StateInfo) (enrollmentContextID string, err error)

VerifyEnrollmentState verify the caCert enrollment state

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

func (*EnrollmentContext) Terminate

func (enrollCtx *EnrollmentContext) Terminate(ctx context.Context) error

Terminate the caCert enrollment

func (*EnrollmentContext) Update

func (enrollCtx *EnrollmentContext) Update(ctx context.Context, contextID string) error

Update the caCert enrollment

type EnrollmentResource

type EnrollmentResource struct {
	CertificateRequest map[string]*cmv1.CertificateRequest
	Certificate        map[string]*cmv1.Certificate
}

EnrollmentResource holds the resources created for the caCert enrollment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL