Documentation ¶
Index ¶
- func GetServers(token string, filter ServerFilter) ([]byte, error)
- func WaitForIp() bool
- type AcmeUser
- type AutoTls
- type LabelSelector
- type Meta
- type Metadata
- type Pagination
- type Server
- type ServerFilter
- type ServerMetadata
- type ServerMetadataPrivateNetwork
- type ServerMetadataPrivateNetworks
- type TlsCert
- type TlsConfig
- type TlsConsulStorage
- func (fs *TlsConsulStorage) Exists(ctx context.Context, key string) (bool, error)
- func (fs *TlsConsulStorage) Find(ctx context.Context, key string, ext string) ([]string, error)
- func (fs *TlsConsulStorage) Read(ctx context.Context, key string) ([]byte, error)
- func (fs *TlsConsulStorage) Write(ctx context.Context, key string, b []byte) error
- type TlsFileStorage
- func (fs *TlsFileStorage) Exists(ctx context.Context, key string) (bool, error)
- func (fs *TlsFileStorage) Find(ctx context.Context, key string, ext string) ([]string, error)
- func (fs *TlsFileStorage) Read(ctx context.Context, key string) ([]byte, error)
- func (fs *TlsFileStorage) Write(ctx context.Context, key string, b []byte) error
- type TlsNullStorage
- func (fs *TlsNullStorage) Exists(ctx context.Context, key string) (bool, error)
- func (fs *TlsNullStorage) Find(ctx context.Context, key string, ext string) ([]string, error)
- func (fs *TlsNullStorage) Read(ctx context.Context, key string) ([]byte, error)
- func (fs *TlsNullStorage) Write(ctx context.Context, key string, b []byte) error
- type TlsStorage
- type TlsVaultStorage
- func (fs *TlsVaultStorage) Exists(ctx context.Context, key string) (bool, error)
- func (fs *TlsVaultStorage) Find(ctx context.Context, key string, ext string) ([]string, error)
- func (fs *TlsVaultStorage) Read(ctx context.Context, key string) ([]byte, error)
- func (fs *TlsVaultStorage) Write(ctx context.Context, key string, b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServers ¶ added in v0.0.3
func GetServers(token string, filter ServerFilter) ([]byte, error)
Types ¶
type AcmeUser ¶ added in v0.0.3
type AcmeUser struct { Email string `json:"email,omitempty"` Registration *registration.Resource `json:"registration,omitempty"` // contains filtered or unexported fields }
func (*AcmeUser) GetPrivateKey ¶ added in v0.0.3
func (u *AcmeUser) GetPrivateKey() crypto.PrivateKey
func (AcmeUser) GetRegistration ¶ added in v0.0.3
func (u AcmeUser) GetRegistration() *registration.Resource
type AutoTls ¶ added in v0.0.3
type AutoTls struct { Config TlsConfig Storage TlsStorage AccountStorage TlsStorage }
type LabelSelector ¶ added in v0.0.3
LabelSelector https://docs.hetzner.cloud/#label-selector
func (*LabelSelector) String ¶ added in v0.0.3
func (ls *LabelSelector) String() string
type Meta ¶ added in v0.0.3
type Meta struct {
Pagination `json:"pagination,omitempty"`
}
type Metadata ¶
type Metadata struct { ID string `json:"id,omitempty"` Hostname string `json:"hostname,omitempty"` PrivateIpv4 string `json:"ip,omitempty"` PublicIpv4 string `json:"public_ip,omitempty"` }
func GetMetadata ¶
type Pagination ¶ added in v0.0.3
type ServerFilter ¶ added in v0.0.3
type ServerFilter struct { ByLabel LabelSelector ExpectedAmount int }
type ServerMetadata ¶
type ServerMetadataPrivateNetwork ¶
type ServerMetadataPrivateNetwork struct { Ip string `yaml:"ip"` AliasIps []string `yaml:"alias_ips"` InterfaceNum int `yaml:"interface_num"` MacAddress string `yaml:"mac_address"` NetworkID string `yaml:"network_id"` NetworkName string `yaml:"network_name"` Network string `yaml:"network"` Subnet string `yaml:"subnet"` Gateway string `yaml:"gateway"` }
type ServerMetadataPrivateNetworks ¶
type ServerMetadataPrivateNetworks = []ServerMetadataPrivateNetwork
type TlsConsulStorage ¶ added in v0.0.5
type TlsFileStorage ¶ added in v0.0.4
type TlsFileStorage struct{}
type TlsNullStorage ¶ added in v0.0.5
type TlsNullStorage struct{}
type TlsStorage ¶ added in v0.0.3
type TlsStorage interface { Exists(ctx context.Context, key string) (bool, error) Write(ctx context.Context, key string, b []byte) error Read(ctx context.Context, key string) ([]byte, error) Find(ctx context.Context, key string, ext string) ([]string, error) }
func TlsStorageById ¶ added in v0.0.5
func TlsStorageById(id string) TlsStorage
Click to show internal directories.
Click to hide internal directories.