Documentation
¶
Index ¶
- type Attestation
- type Identity
- type KeyValueEntity
- type License
- type LicenseStruct
- type Server
- func (server *Server) AddServiceRef(serviceID uint64)
- func (server *Server) GetLicense() *LicenseStruct
- func (server *Server) GetServiceRefs() []uint64
- func (server *Server) Identifier() uint64
- func (server *Server) RemoveServiceRef(serviceID uint64)
- func (server *Server) SetID(id uint64)
- func (server *Server) SetLicense(license *LicenseStruct)
- func (server *Server) SetServiceRefs(refs []uint64)
- type WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation struct {
AllowAttestorSelfCA bool `yaml:"allow-attestor-self-ca" json:"allow_attestor_self_ca" mapstructure:"allow-attestor-self-ca"`
AllowOpenEnrollment bool `yaml:"allow-open-enrollment" json:"allow-open-enrollment" mapstructure:"allow-open-enrollment"`
AllowedVerifiers []string `yaml:"allowed-verifiers" json:"allowed_verifiers" mapstructure:"allowed-verifiers"`
ClientCACert string `yaml:"client-ca-cert" json:"client_ca_cert" mapstructure:"client-ca-cert"`
InsecurePort int `yaml:"insecure-port" json:"insecure_port" mapstructure:"insecure-port"`
InsecureSkipVerify bool `yaml:"insecure-skip-verify" json:"insecure_skip_verify" mapstructure:"insecure-skip-verify"`
TLSPort int `yaml:"tls-port" json:"tls_port" mapstructure:"tls-port"`
QuotePCRs []int32 `yaml:"quote-pcrs" json:"quote-pcrs" mapstructure:"quote-pcrs"`
}
type Identity ¶
type Identity struct {
SANS *ca.SubjectAlternativeNames `yaml:"sans" json:"sans" mapstructure:"sans"`
Subject ca.Subject `yaml:"subject" json:"subject" mapstructure:"subject"`
Valid int `yaml:"valid" json:"valid" mapstructure:"valid"`
}
type KeyValueEntity ¶
type LicenseStruct ¶
type LicenseStruct struct {
// contains filtered or unexported fields
}
func (*LicenseStruct) Quota ¶
func (license *LicenseStruct) Quota() int
type Server ¶
type Server struct {
ID uint64
IpAddress string
Hostname string
License *LicenseStruct `yaml:"license" json:"license" mapstructure:"license"`
ServiceRefs []uint64 `yaml:"services" json:"services" mapstructure:"services"`
KeyValueEntity `sql:"-" gorm:"-" yaml:"-" json:"-"`
}
func (*Server) AddServiceRef ¶
func (*Server) GetLicense ¶
func (server *Server) GetLicense() *LicenseStruct
func (*Server) GetServiceRefs ¶
func (*Server) Identifier ¶
func (*Server) RemoveServiceRef ¶
func (*Server) SetLicense ¶
func (server *Server) SetLicense(license *LicenseStruct)
func (*Server) SetServiceRefs ¶
type WebService ¶
type WebService struct {
Certificate Identity `yaml:"certificate" json:"certificate" mapstructure:"certificate"`
Home string `yaml:"home" json:"home" mapstructure:"home"`
JWTExpiration int `yaml:"jwt-expiration" json:"jwt_expiration" mapstructure:"jwt-expiration"`
Key *keystore.KeyConfig `yaml:"key" json:"key" mapstructure:"key"`
Port int `yaml:"port" json:"port" mapstructure:"port"`
TLSPort int `yaml:"tls-port" json:"tls_port" mapstructure:"tls-port"`
}
Click to show internal directories.
Click to hide internal directories.