Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileGenerator ¶
type FileGenerator struct {
Path string
}
FileGenerator generates a profile by reading a file. The file is read every time GenerateEnrollProfile is called
func (*FileGenerator) GenerateEnrollProfile ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer wraps a Generator and signs the profile after it is generated
type SignerOption ¶
type SignerOption func(s *Signer)
func WithLogger ¶
func WithLogger(logger *slog.Logger) SignerOption
WithLogger configures the service with the given logger If left unconfigured, logging will be disabled
type StaticGenerator ¶
type StaticGenerator struct {
Profile []byte
}
StaticGenerator generates a static profile
func NewStaticGenerator ¶
func NewStaticGenerator(filepath string) (*StaticGenerator, error)
NewStaticGenerator returns a new StaticGenerator by reading the profile at filepath. The file is only read once at creation time
func (*StaticGenerator) GenerateEnrollProfile ¶
Click to show internal directories.
Click to hide internal directories.