Documentation
¶
Index ¶
- Constants
- func AccountAccept(ctx context.Context, accountStorage storage.AccountStorage, accountID api.UUID, ...) (*api.Account, error)
- func AccountReject(ctx context.Context, accountStorage storage.AccountStorage, accountID api.UUID) (*api.Account, error)
- func HasPendingCSR(account *api.Account) bool
- func RegisterDebugInfoEntry(entry *DebugInfoEntry)
- type DebugInfoEntry
- type MapItem
- type MapSlice
- type OctetSteamWriter
- type Options
- type OutputFormatter
- type Service
- type TextFormatter
- func (f *TextFormatter) AddValue(value interface{}) error
- func (f *TextFormatter) CloseSection() error
- func (f *TextFormatter) CloseTable() error
- func (f *TextFormatter) OpenSection(title string) error
- func (f *TextFormatter) OpenTable(columns ...string) error
- func (f *TextFormatter) Raw(_ string, data []byte) error
- func (f *TextFormatter) Writer() io.Writer
Constants ¶
View Source
const ( // DefaultPoolSize is the default size of the worker pool DefaultPoolSize = 5 // DefaultPoolMaxPending is the default number of requests that can be // pending DefaultPoolMaxPending = 5 // DefaultPoolMaxPendingDuration is the default max pending duration for a // a request DefaultPoolMaxPendingDuration = time.Second // DefaultMaxPurgeJobs is the default maxiumum number of purge jobs DefaultMaxPurgeJobs = 1 // DefaultPurgeBatchSize is the default number of process that are purged // in one batch DefaultPurgeBatchSize = 200 )
Variables ¶
This section is empty.
Functions ¶
func AccountAccept ¶
func AccountAccept( ctx context.Context, accountStorage storage.AccountStorage, accountID api.UUID, serverCert *x509.Certificate, serverKey interface{}, expire time.Time, ) (*api.Account, error)
AccountAccept accepts a pending account request; a certificate is generated from the CSR.
func AccountReject ¶
func AccountReject( ctx context.Context, accountStorage storage.AccountStorage, accountID api.UUID, ) (*api.Account, error)
AccountReject rejects a pending account request.
func HasPendingCSR ¶
HasPendingCSR returns true if the given account has a CSR pending
func RegisterDebugInfoEntry ¶
func RegisterDebugInfoEntry(entry *DebugInfoEntry)
Types ¶
type DebugInfoEntry ¶
type OctetSteamWriter ¶
type OctetSteamWriter struct {
// contains filtered or unexported fields
}
func NewOctetStreamWriter ¶
func NewOctetStreamWriter( ctx context.Context, send func(*control.OctetStreamList), ) OctetSteamWriter
type Options ¶
type Options struct { services.Options PoolSize uint PoolMaxPending uint PoolMaxPendingDuration time.Duration PurgeBatchSize int ServerCert *x509.Certificate ServerKey interface{} MaxPurgeJobs int PipelineManager *pipeline.Manager ProcessManager *process.Manager ProcessStorage storage.ProcessStorage AccountStorage storage.AccountStorage PasswordStorage storage.PasswordStorage ActorStorage storage.ActorStorage EnvelopeStorage storage.EnvelopeStorage LogStorage storage.LogStorage JobStorage storage.JobStorage }
Options for the Service
type OutputFormatter ¶
type Service ¶
type Service struct { services.BaseService // contains filtered or unexported fields }
Service provides an api for administrators
func NewService ¶
NewService instantiate a Service
type TextFormatter ¶
type TextFormatter struct {
// contains filtered or unexported fields
}
func (*TextFormatter) AddValue ¶
func (f *TextFormatter) AddValue(value interface{}) error
func (*TextFormatter) CloseSection ¶
func (f *TextFormatter) CloseSection() error
func (*TextFormatter) CloseTable ¶
func (f *TextFormatter) CloseTable() error
func (*TextFormatter) OpenSection ¶
func (f *TextFormatter) OpenSection(title string) error
func (*TextFormatter) OpenTable ¶
func (f *TextFormatter) OpenTable(columns ...string) error
func (*TextFormatter) Writer ¶
func (f *TextFormatter) Writer() io.Writer
Click to show internal directories.
Click to hide internal directories.