Documentation ¶
Index ¶
- Variables
- type Config
- type KubeStore
- func (s *KubeStore) Delete(key string) error
- func (s *KubeStore) Exists(key string) bool
- func (s *KubeStore) List(prefix string, recursive bool) ([]string, error)
- func (s *KubeStore) Load(key string) ([]byte, error)
- func (s *KubeStore) Lock(ctx context.Context, key string) error
- func (s *KubeStore) Stat(key string) (certmagic.KeyInfo, error)
- func (s *KubeStore) Store(key string, value []byte) error
- func (s *KubeStore) String() string
- func (s *KubeStore) Unlock(key string) error
- type LetsEncrypt
- func (l *LetsEncrypt) AddExistingCertificate(certFile, keyFile string) error
- func (l *LetsEncrypt) DeleteProjectDomains(project string) error
- func (l *LetsEncrypt) LetsEncryptHTTPChallengeHandler(h http.Handler) http.Handler
- func (l *LetsEncrypt) SetLetsEncryptEmail(email string)
- func (l *LetsEncrypt) SetProjectDomains(project string, c *config.LetsEncrypt) error
- func (l *LetsEncrypt) TLSConfig() *tls.Config
- type Storage
- func (s *Storage) Delete(key string) error
- func (s *Storage) Exists(key string) bool
- func (s *Storage) List(prefix string, recursive bool) ([]string, error)
- func (s *Storage) Load(key string) ([]byte, error)
- func (s *Storage) Lock(ctx context.Context, key string) error
- func (s *Storage) Stat(key string) (certmagic.KeyInfo, error)
- func (s *Storage) Store(key string, value []byte) error
- func (s *Storage) String() string
- func (s *Storage) Unlock(key string) error
- type StoreType
Constants ¶
This section is empty.
Variables ¶
var StorageKeys certmagic.KeyBuilder
StorageKeys is used to store certmagic keys
Functions ¶
This section is empty.
Types ¶
type KubeStore ¶
type KubeStore struct {
// contains filtered or unexported fields
}
KubeStore object for storing kube info
func NewKubeStore ¶
NewKubeStore creates a new instance kube store
type LetsEncrypt ¶
type LetsEncrypt struct {
// contains filtered or unexported fields
}
LetsEncrypt manages letsencrypt certificates
func (*LetsEncrypt) AddExistingCertificate ¶
func (l *LetsEncrypt) AddExistingCertificate(certFile, keyFile string) error
AddExistingCertificate lets the user add an existing certificate. This certificate will not be automatically renewed via let's encrypt
func (*LetsEncrypt) DeleteProjectDomains ¶
func (l *LetsEncrypt) DeleteProjectDomains(project string) error
DeleteProjectDomains deletes a projects associated domains
func (*LetsEncrypt) LetsEncryptHTTPChallengeHandler ¶
func (l *LetsEncrypt) LetsEncryptHTTPChallengeHandler(h http.Handler) http.Handler
LetsEncryptHTTPChallengeHandler handle the http challenge
func (*LetsEncrypt) SetLetsEncryptEmail ¶
func (l *LetsEncrypt) SetLetsEncryptEmail(email string)
SetLetsEncryptEmail sets config email
func (*LetsEncrypt) SetProjectDomains ¶
func (l *LetsEncrypt) SetProjectDomains(project string, c *config.LetsEncrypt) error
SetProjectDomains sets the config required by lets encrypt
func (*LetsEncrypt) TLSConfig ¶
func (l *LetsEncrypt) TLSConfig() *tls.Config
TLSConfig returns the tls config to be used by the http server
type Storage ¶
Storage is the object for storing space cloud storage information
func NewScStore ¶
func NewScStore() *Storage
NewScStore returns a new instance of space cloud storage
func (*Storage) Lock ¶
Lock obtains a lock named by the given key. It blocks until the lock can be obtained or an error is returned.