Documentation
¶
Index ¶
- Variables
- func CreateCustomDir(ctx context.Context, filename string, conf *Config) error
- func DefaultConfigFile(ctx context.Context) string
- func GenerateSelfSignedCert(ctx context.Context, filename string, conf *Config) error
- func LoadOrCreate(ctx context.Context, filename string, conf *Config, funcs ...TransformFunc) error
- func RenewExpiredSelfSignedCert(ctx context.Context, filename string, conf *Config) error
- type AppsConfig
- type Config
- type HTTPConfig
- type HTTPSConfig
- type SelfSignedCertConfig
- type TransformFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTransforms = []TransformFunc{ GenerateSelfSignedCert, RenewExpiredSelfSignedCert, CreateCustomDir, }
Functions ¶
func CreateCustomDir ¶
func DefaultConfigFile ¶
func GenerateSelfSignedCert ¶
func LoadOrCreate ¶
Types ¶
type AppsConfig ¶
type Config ¶
type Config struct {
InstanceID string `json:"instanceId"`
HTTP HTTPConfig `json:"http"`
HTTPS HTTPSConfig `json:"https"`
Apps AppsConfig `json:"apps"`
AllowedOrigins []string `json:"allowedOrigins"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type HTTPConfig ¶
type HTTPSConfig ¶
type HTTPSConfig struct {
Address string `json:"address"`
Cert []byte `json:"cert"`
Key []byte `json:"key"`
SelfSigned SelfSignedCertConfig `json:"selfSigned"`
}
type SelfSignedCertConfig ¶
Click to show internal directories.
Click to hide internal directories.