Versions in this module Expand all Collapse all v1 v1.0.1 Mar 5, 2023 v1.0.0 Mar 1, 2023 Changes in this version + var ApplicationClass = reflect.TypeOf((*Application)(nil)).Elem() + var ApplicationFlagsClass = reflect.TypeOf((*ApplicationFlags)(nil)).Elem() + var AuthenticationServiceClass = reflect.TypeOf((*AuthorizationMiddleware)(nil)).Elem() + var AutocertManagerClass = reflect.TypeOf((*autocert.Manager)(nil)) + var AutocertStorageClass = reflect.TypeOf((*AutocertStorage)(nil)).Elem() + var AutoupdateServiceClass = reflect.TypeOf((*AutoupdateService)(nil)).Elem() + var CertificateIssuerClass = reflect.TypeOf((*CertificateIssuer)(nil)).Elem() + var CertificateIssuerServiceClass = reflect.TypeOf((*CertificateIssueService)(nil)).Elem() + var CertificateManagerClass = reflect.TypeOf((*CertificateManager)(nil)).Elem() + var CertificateRepositoryClass = reflect.TypeOf((*CertificateRepository)(nil)).Elem() + var CertificateServiceClass = reflect.TypeOf((*CertificateService)(nil)).Elem() + var ClientScannerClass = reflect.TypeOf((*ClientScanner)(nil)).Elem() + var CommandClass = reflect.TypeOf((*Command)(nil)).Elem() + var ComponentClass = reflect.TypeOf((*Component)(nil)).Elem() + var ConfigRepositoryClass = reflect.TypeOf((*ConfigRepository)(nil)).Elem() + var ControlClientClass = reflect.TypeOf((*ControlClient)(nil)).Elem() + var CoreScannerClass = reflect.TypeOf((*CoreScanner)(nil)).Elem() + var DNSProviderClass = reflect.TypeOf((*DNSProvider)(nil)).Elem() + var DNSProviderClientClass = reflect.TypeOf((*DNSProviderClient)(nil)).Elem() + var DynDNSServiceClass = reflect.TypeOf((*DynDNSService)(nil)).Elem() + var FileSystemClass = reflect.TypeOf((*http.FileSystem)(nil)).Elem() + var FlagSetClass = reflect.TypeOf((*flag.FlagSet)(nil)) + var FlagSetRegistrarClass = reflect.TypeOf((*FlagSetRegistrar)(nil)).Elem() + var GrpcClientClass = reflect.TypeOf((*grpc.ClientConn)(nil)) + var GrpcServerClass = reflect.TypeOf((*grpc.Server)(nil)) + var HealthCheckerClass = reflect.TypeOf((*health.Server)(nil)) + var HttpServerClass = reflect.TypeOf((*http.Server)(nil)) + var JobServiceClass = reflect.TypeOf((*JobService)(nil)).Elem() + var LogClass = reflect.TypeOf((*zap.Logger)(nil)) + var LumberjackClass = reflect.TypeOf((*lumberjack.Logger)(nil)) + var MailServiceClass = reflect.TypeOf((*MailService)(nil)).Elem() + var NatServiceClass = reflect.TypeOf((*NatService)(nil)).Elem() + var NodeServiceClass = reflect.TypeOf((*NodeService)(nil)).Elem() + var PageClass = reflect.TypeOf((*Page)(nil)).Elem() + var ResourceServiceClass = reflect.TypeOf((*ResourceService)(nil)).Elem() + var SealServiceClass = reflect.TypeOf((*SealService)(nil)).Elem() + var ServerClass = reflect.TypeOf((*Server)(nil)).Elem() + var ServerScannerClass = reflect.TypeOf((*ServerScanner)(nil)).Elem() + var StorageServiceClass = reflect.TypeOf((*StorageService)(nil)).Elem() + var SystemEnvironmentPropertyResolverClass = reflect.TypeOf((*SystemEnvironmentPropertyResolver)(nil)).Elem() + var TlsConfigClass = reflect.TypeOf((*tls.Config)(nil)) + var WhoisServiceClass = reflect.TypeOf((*WhoisService)(nil)).Elem() + type AcmeAccount struct + Contact []string + ExternalAccountBinding json.RawMessage + OnlyReturnExisting bool + Orders string + Status string + TermsOfServiceAgreed bool + type AcmeResource struct + Body AcmeAccount + URI string + type AcmeUser struct + Email string + PrivateKey crypto.PrivateKey + Registration *AcmeResource + func (u *AcmeUser) GetEmail() string + func (u *AcmeUser) GetPrivateKey() crypto.PrivateKey + func (u *AcmeUser) GetRegistration() *AcmeResource + type Application interface + Active func() bool + AppendBeans func(beans ...interface{}) + ApplicationDir func() string + Build func() string + Executable func() string + IsDev func() bool + Name func() string + Profile func() string + Restarting func() bool + Run func(args []string) error + Shutdown func(restart bool) + Version func() string + type ApplicationFlags interface + Daemon func() bool + Properties func() map[string]string + Verbose func() bool + type AsymmetricSealer interface + EncodePrivateKey func() (string, error) + EncodePublicKey func() (string, error) + Open func(ciphertext []byte, sender crypto.PublicKey) (plaintext []byte, err error) + PrivateKey func() crypto.PrivateKey + PublicKey func() crypto.PublicKey + Seal func(plaintext []byte, recipient crypto.PublicKey) (ciphertext []byte, err error) + type AsymmetricSigner interface + EncodePrivateKey func() (string, error) + EncodePublicKey func() (string, error) + PrivateKey func() crypto.PrivateKey + PublicKey func() crypto.PublicKey + Sign func(plaintext []byte) (sign []byte, err error) + Verify func(plaintext, sign []byte) (valid bool, err error) + type AuthenticatedCipher interface + Decrypt func(ciphertext []byte) (plaintext []byte, err error) + Encrypt func(plaintext []byte) (ciphertext []byte, err error) + Key func() cipher.AEAD + type AuthorizationMiddleware interface + Authenticate func(ctx context.Context) (context.Context, error) + GenerateToken func(user *AuthorizedUser) (string, error) + GetUser func(ctx context.Context) (*AuthorizedUser, bool) + HasUserRole func(ctx context.Context, role string) bool + InvalidateToken func(token string) + ParseToken func(token string) (*AuthorizedUser, error) + UserContext func(ctx context.Context, name string) (string, bool) + type AuthorizedUser struct + Context map[string]string + ExpiresAt int64 + Roles map[string]bool + Token string + Username string + type AutocertStorage interface + Cache func(serverName string) autocert.Cache + type AutoupdateService interface + Freeze func(jobName string) int64 + FreezeJobs func() map[int64]string + Unfreeze func(handle int64) + type CertificateDesc struct + City string + Country string + Organization string + Province string + Street string + Zip string + type CertificateIssueService interface + CreateIssuer func(cn string, info *CertificateDesc) (CertificateIssuer, error) + LoadCertificateDesc func() (*CertificateDesc, error) + LoadIssuer func(*saucepb.SelfSigner) (CertificateIssuer, error) + LocalIPAddresses func(addLocalhost bool) ([]net.IP, error) + type CertificateIssuer interface + Certificate func() IssuedCertificate + IssueClientCert func(cn string, password string) (cert IssuedCertificate, pfxData []byte, err error) + IssueInterCert func(cn string) (CertificateIssuer, error) + IssueServerCert func(cn string, domains []string, ipAddresses []net.IP) (IssuedCertificate, error) + Parent func() (CertificateIssuer, bool) + type CertificateManager interface + ExecuteCommand func(cmd string, args []string) (string, error) + GetCertificate func(hello *tls.ClientHelloInfo) (*tls.Certificate, error) + InvalidateCache func(domain string) + ListActive func() map[string]error + ListRenewal func() map[string]time.Time + ListUnknown func() map[string]time.Time + type CertificateRepository interface + Backend func() fastfood.DataStore + DeleteAccount func(email string) error + DeleteSelfSigner func(name string) error + DeleteZone func(zone string) error + FindAccount func(email string) (*saucepb.AcmeAccount, error) + FindSelfSigner func(name string) (*saucepb.SelfSigner, error) + FindZone func(zone string) (*saucepb.Zone, error) + ListAccounts func(prefix string, cb func(*saucepb.AcmeAccount) bool) error + ListSelfSigners func(prefix string, cb func(*saucepb.SelfSigner) bool) error + ListZones func(prefix string, cb func(*saucepb.Zone) bool) error + SaveAccount func(account *saucepb.AcmeAccount) error + SaveSelfSigner func(self *saucepb.SelfSigner) error + SaveZone func(zone *saucepb.Zone) error + SetBackend func(storage fastfood.DataStore) + Watch func(ctx context.Context, cb func(zone, event string) bool) (cancel context.CancelFunc, err error) + type CertificateService interface + CreateAcmeAccount func(email string) error + CreateSelfSigner func(cn string, withInter bool) error + ExecuteCommand func(cmd string, args []string) (string, error) + GetOrCreateAcmeUser func(email string) (user *AcmeUser, err error) + IssueAcmeCertificate func(entry *saucepb.Zone) (string, error) + IssueSelfSignedCertificate func(entry *saucepb.Zone) error + RenewCertificate func(zone string) error + type CipherOption interface + Apply func(*CipherOptions) error + type CipherOptions struct + Algorithm string + Block cipher.Block + type ClientScanner interface + ClientBeans func() []interface{} + type Command interface + Desc func() string + Run func(args []string) error + type Component interface + GetStats func(cb func(name, value string) bool) error + type ConfigRepository interface + Backend func() fastfood.DataStore + EnumerateAll func(prefix string, cb func(key, value string) bool) error + Get func(key string) (string, error) + Set func(key, value string) error + SetBackend func(storage fastfood.DataStore) + Watch func(context context.Context, prefix string, cb func(key, value string) bool) (context.CancelFunc, error) + type ControlClient interface + CertificateCommand func(command string, args []string) (string, error) + ConfigCommand func(command string, args []string) (string, error) + JobCommand func(command string, args []string) (string, error) + Shutdown func(restart bool) (string, error) + Status func() (string, error) + StorageCommand func(command string, args []string) (string, error) + StorageConsole func(writer io.StringWriter, errWriter io.StringWriter) error + type CoreScanner interface + CoreBeans func() []interface{} + type DNSProvider interface + Detect func(whois *Whois) bool + NewClient func() (DNSProviderClient, error) + RegisterChallenge func(legoClient interface{}, token string) error + type DNSProviderClient interface + CreateRecord func(zoneID string, record *DNSRecord) (*DNSRecord, error) + GetPublicIP func() (addr string, err error) + GetRecords func(zoneID string) ([]*DNSRecord, error) + RemoveRecord func(zoneID, recordID string) error + type DNSRecord struct + Hostname string + ID string + Priority int + TTL int + Type string + Value string + type DynDNSService interface + EnsureAllPublic func(subDomains ...string) error + EnsureCustom func(func(client DNSProviderClient, zone string, externalIP string) error) error + type FlagSetRegistrar interface + RegisterFlags func(fs *flag.FlagSet) + RegisterServerArgs func(args []string) []string + type IssuedCertificate interface + CertFileContents func() []byte + Certificate func() *x509.Certificate + KeyFileContents func() []byte + PrivateKey func() crypto.Signer + type JobInfo struct + ExecutionFn func(context.Context) error + Name string + Schedule string + type JobService interface + AddJob func(*JobInfo) error + CancelJob func(name string) error + ExecuteCommand func(cmd string, args []string) (string, error) + ListJobs func() ([]string, error) + RunJob func(ctx context.Context, name string) error + type Mail struct + Attachments []string + Data interface{} + HtmlTemplate string + Recipients []string + Sender string + Subject string + TextTemplate string + type MailService interface + SendMail func(mail *Mail, timeout time.Duration, async bool) error + type NatService interface + AddMapping func(protocol string, extport, intport int, name string, lifetime time.Duration) error + AllowMapping func() bool + DeleteMapping func(protocol string, extport, intport int) error + ExternalIP func() (net.IP, error) + ServiceName func() string + type NodeService interface + Issue func() uuid.UUID + NodeId func() uint64 + NodeIdHex func() string + Parse func(uuid.UUID) (timestampMillis int64, nodeId int64, clock int) + type Page interface + Pattern func() string + type Record struct + Key []byte + Value []byte + type ResourceService interface + GetLicenses func(name string) (string, error) + GetOpenAPI func(source string) string + GetResource func(name string) ([]byte, error) + HtmlTemplate func(name string) (*htmlTemplate.Template, error) + TextTemplate func(name string) (*textTemplate.Template, error) + type SealService interface + AuthenticatedCipher func(options ...CipherOption) (AuthenticatedCipher, error) + IssueSealer func(algorithm string, bits int) (AsymmetricSealer, error) + IssueSigner func(algorithm string, bits int) (AsymmetricSigner, error) + Sealer func(options ...SealerOption) (AsymmetricSealer, error) + Signer func(options ...SealerOption) (AsymmetricSigner, error) + type SealerOption interface + Apply func(*SealerOptions) error + type SealerOptions struct + Algorithm string + PrivateKey crypto.PrivateKey + PublicKey crypto.PublicKey + type Server interface + Active func() bool + Bind func() error + ListenAddress func() net.Addr + Serve func() error + Stop func() + type ServerScanner interface + ServerBeans func() []interface{} + type StorageConsoleStream interface + Recv func() (*saucepb.StorageConsoleRequest, error) + Send func(*saucepb.StorageConsoleResponse) error + type StorageService interface + Console func(stream StorageConsoleStream) error + Execute func(name, query string, cb func(string) bool) error + ExecuteCommand func(cmd string, args []string) (string, error) + LocalConsole func(writer io.StringWriter, errWriter io.StringWriter) error + type SystemEnvironmentPropertyResolver interface + Environ func(withValues bool) []string + PromptProperty func(key string) (string, bool) + type Whois struct + Created string + Domain string + Email string + NServer []string + PaidTill string + Person string + Registrar string + State string + type WhoisService interface + Parse func(whoisResp string) *Whois + Whois func(domain string) (string, error)