Documentation ¶
Index ¶
- type AdminConfig
- type ConfigValue
- type ConfigValueType
- type FSSourceConfig
- type File
- type GetEnvFunc
- type HTTPProxyConfig
- type LocationConfig
- func (l *LocationConfig) AppendLocation(lc LocationConfig)
- func (l *LocationConfig) GetAdmin() *AdminConfig
- func (l *LocationConfig) GetFSSource() *FSSourceConfig
- func (l *LocationConfig) GetHTTPProxy() HTTPProxyConfig
- func (l *LocationConfig) GetLocations() []LocationConfig
- func (l *LocationConfig) GetMemSource() *MemorySourceConfig
- func (l *LocationConfig) GetS3Source() *S3SourceConfig
- func (l *LocationConfig) SetAdmin(ad *AdminConfig)
- func (l *LocationConfig) SetFSSource(fss *FSSourceConfig)
- func (l *LocationConfig) SetHTTPProxy(p HTTPProxyConfig)
- func (l *LocationConfig) SetMemSource(ms *MemorySourceConfig)
- func (l *LocationConfig) SetS3Source(s3s *S3SourceConfig)
- type LocationOrServer
- type MastodonServiceConfig
- type MemorySourceConfig
- type PluginConfig
- type S3SourceConfig
- type ServerConfig
- func (s *ServerConfig) AppendLocation(l LocationConfig)
- func (s *ServerConfig) GetAdmin() *AdminConfig
- func (s *ServerConfig) GetFSSource() *FSSourceConfig
- func (s *ServerConfig) GetHTTPProxy() HTTPProxyConfig
- func (s *ServerConfig) GetLocations() []LocationConfig
- func (s *ServerConfig) GetMemSource() *MemorySourceConfig
- func (s *ServerConfig) GetS3Source() *S3SourceConfig
- func (s *ServerConfig) SetAdmin(ad *AdminConfig)
- func (s *ServerConfig) SetFSSource(fss *FSSourceConfig)
- func (s *ServerConfig) SetHTTPProxy(p HTTPProxyConfig)
- func (s *ServerConfig) SetMemSource(ms *MemorySourceConfig)
- func (s *ServerConfig) SetS3Source(s3s *S3SourceConfig)
- type SourceConfig
- type TinylogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶
type AdminConfig struct { AuthorizedKeys []string Tinylogs []TinylogConfig Test bool }
type ConfigValue ¶ added in v0.2.0
type ConfigValue struct { Type ConfigValueType `cty:"type"` Value string `cty:"value"` }
func CreateEnvConfigValue ¶ added in v0.2.0
func CreateEnvConfigValue(val string) *ConfigValue
func CreateFileConfigValue ¶ added in v0.2.0
func CreateFileConfigValue(val string) *ConfigValue
type ConfigValueType ¶ added in v0.2.0
type ConfigValueType int
const ( EnvType ConfigValueType = iota FileType )
type FSSourceConfig ¶
type FSSourceConfig struct {
Root string
}
type File ¶
type File struct { CertRoot string Servers []ServerConfig Plugins map[string]PluginConfig }
func LoadConfig ¶
func ParseString ¶
func ParseStringWithEnv ¶ added in v0.2.0
func ParseStringWithEnv(src string, filename string, getEnv GetEnvFunc) (*File, hcl.Diagnostics)
type GetEnvFunc ¶ added in v0.2.0
type HTTPProxyConfig ¶
type LocationConfig ¶
type LocationConfig struct { Path string PluginPass string // Sources FSSource *FSSourceConfig S3Source *S3SourceConfig MemSource *MemorySourceConfig Admin *AdminConfig Locations []LocationConfig HTTPProxy HTTPProxyConfig }
func (*LocationConfig) AppendLocation ¶
func (l *LocationConfig) AppendLocation(lc LocationConfig)
func (*LocationConfig) GetAdmin ¶
func (l *LocationConfig) GetAdmin() *AdminConfig
func (*LocationConfig) GetFSSource ¶
func (l *LocationConfig) GetFSSource() *FSSourceConfig
func (*LocationConfig) GetHTTPProxy ¶
func (l *LocationConfig) GetHTTPProxy() HTTPProxyConfig
func (*LocationConfig) GetLocations ¶
func (l *LocationConfig) GetLocations() []LocationConfig
func (*LocationConfig) GetMemSource ¶
func (l *LocationConfig) GetMemSource() *MemorySourceConfig
func (*LocationConfig) GetS3Source ¶
func (l *LocationConfig) GetS3Source() *S3SourceConfig
func (*LocationConfig) SetAdmin ¶
func (l *LocationConfig) SetAdmin(ad *AdminConfig)
func (*LocationConfig) SetFSSource ¶
func (l *LocationConfig) SetFSSource(fss *FSSourceConfig)
func (*LocationConfig) SetHTTPProxy ¶
func (l *LocationConfig) SetHTTPProxy(p HTTPProxyConfig)
func (*LocationConfig) SetMemSource ¶
func (l *LocationConfig) SetMemSource(ms *MemorySourceConfig)
func (*LocationConfig) SetS3Source ¶
func (l *LocationConfig) SetS3Source(s3s *S3SourceConfig)
type LocationOrServer ¶
type LocationOrServer interface { // Sources GetFSSource() *FSSourceConfig SetFSSource(*FSSourceConfig) GetS3Source() *S3SourceConfig SetS3Source(*S3SourceConfig) GetMemSource() *MemorySourceConfig SetMemSource(*MemorySourceConfig) GetAdmin() *AdminConfig SetAdmin(*AdminConfig) GetHTTPProxy() HTTPProxyConfig SetHTTPProxy(p HTTPProxyConfig) GetLocations() []LocationConfig AppendLocation(LocationConfig) }
type MastodonServiceConfig ¶ added in v0.2.0
type MemorySourceConfig ¶
type MemorySourceConfig struct {
ID string
}
type PluginConfig ¶
type S3SourceConfig ¶
type ServerConfig ¶
type ServerConfig struct { Host string // Sources FSSource *FSSourceConfig S3Source *S3SourceConfig MemSource *MemorySourceConfig Admin *AdminConfig HTTPProxy HTTPProxyConfig TLSCert string TLSKey string Locations []LocationConfig }
func (*ServerConfig) AppendLocation ¶
func (s *ServerConfig) AppendLocation(l LocationConfig)
func (*ServerConfig) GetAdmin ¶
func (s *ServerConfig) GetAdmin() *AdminConfig
func (*ServerConfig) GetFSSource ¶
func (s *ServerConfig) GetFSSource() *FSSourceConfig
func (*ServerConfig) GetHTTPProxy ¶
func (s *ServerConfig) GetHTTPProxy() HTTPProxyConfig
func (*ServerConfig) GetLocations ¶
func (s *ServerConfig) GetLocations() []LocationConfig
func (*ServerConfig) GetMemSource ¶
func (s *ServerConfig) GetMemSource() *MemorySourceConfig
func (*ServerConfig) GetS3Source ¶
func (s *ServerConfig) GetS3Source() *S3SourceConfig
func (*ServerConfig) SetAdmin ¶
func (s *ServerConfig) SetAdmin(ad *AdminConfig)
func (*ServerConfig) SetFSSource ¶
func (s *ServerConfig) SetFSSource(fss *FSSourceConfig)
func (*ServerConfig) SetHTTPProxy ¶
func (s *ServerConfig) SetHTTPProxy(p HTTPProxyConfig)
func (*ServerConfig) SetMemSource ¶
func (s *ServerConfig) SetMemSource(ms *MemorySourceConfig)
func (*ServerConfig) SetS3Source ¶
func (s *ServerConfig) SetS3Source(s3s *S3SourceConfig)
type SourceConfig ¶
type SourceConfig struct { }
type TinylogConfig ¶
type TinylogConfig struct { Path string Label string // Crosspost services Mastodons []MastodonServiceConfig }
Click to show internal directories.
Click to hide internal directories.