Documentation
¶
Index ¶
Constants ¶
View Source
const ( // UserIDKey is the context key for user ID UserIDKey contextKey = "user_id" // PermissionsKey is the context key for permissions PermissionsKey contextKey = "permissions" )
Variables ¶
View Source
var ( Version = "1.0.0" BuildDate = time.Now().Format("2006-01-02") GitCommit = "development" GoVersion = "go1.18+" )
Version information - in a production environment, these would be set at build time
Functions ¶
This section is empty.
Types ¶
type AttestationVerifierAdapter ¶
type AttestationVerifierAdapter struct {
// contains filtered or unexported fields
}
AttestationVerifierAdapter adapts the AttestationClient to the AttestationVerifier interface
func (*AttestationVerifierAdapter) Verify ¶
func (a *AttestationVerifierAdapter) Verify(ctx context.Context, attestation *blackicev1.Attestation) (bool, error)
Verify implements the AttestationVerifier interface
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the Control Plane server
func NewServer ¶
func NewServer(cfg *config.ControlPlaneConfig) (*Server, error)
NewServer creates a new Control Plane server
Click to show internal directories.
Click to hide internal directories.