ca

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AllCertsCacheKey = "all_certs_cache"
View Source
const (
	UpperCaApiIntermediateTopology = "/api/v1/cap/ca/intermediate_topology"
)

Variables

This section is empty.

Functions

func DoNothing

func DoNothing()

Types

type IntermediateObject

type IntermediateObject struct {
	Certs    []*schema.FullCert    `mapstructure:"certs" json:"certs"`
	Metadata schema.CaMetadata     `mapstructure:"metadata" json:"metadata"`
	Children []*IntermediateObject `json:"children"`
	Current  bool                  `json:"current"`
}

type Logic

type Logic struct {
	// contains filtered or unexported fields
}

func NewLogic

func NewLogic() *Logic

func (*Logic) IntermediateTopology

func (l *Logic) IntermediateTopology() ([]*IntermediateObject, error)

IntermediateTopology Obtain the sub cluster certificate issued by itself

func (*Logic) RoleProfiles

func (l *Logic) RoleProfiles() ([]RoleProfile, error)

RoleProfiles

func (*Logic) UpperCaIntermediateTopology

func (l *Logic) UpperCaIntermediateTopology() ([]*IntermediateObject, error)

UpperCaIntermediateTopology Get parent CA's

type RoleProfile

type RoleProfile struct {
	Name           string        `json:"name"`
	Usages         []string      `json:"usages"`
	ExpiryString   string        `json:"expiry_string"`
	ExpiryDuration time.Duration `json:"expiry_duration" swaggertype:"string"`
	AuthKey        string        `json:"auth_key"`
	IsCa           bool          `json:"is_ca"`
}

type WorkloadUnit

type WorkloadUnit struct {
	Role          string    `json:"role"`
	ValidNum      int       `json:"valid_num"`       // Number of valid certificates
	FirstIssuedAt time.Time `json:"first_issued_at"` // Date of first issuance of certificate
	UniqueId      string    `json:"unique_id"`
	Forbidden     bool      `json:"forbidden"` // Is it prohibited
}

WorkloadUnit UniqueID Divided workload unit

type WorkloadUnitsParams

type WorkloadUnitsParams struct {
	Page, PageSize int
	UniqueId       string
}

Jump to

Keyboard shortcuts

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