Documentation
¶
Index ¶
- type AuthServiceSecretManager
- type BitbucketHook
- type Client
- type DistributedKey
- type DomainRegistration
- type EncryptedSecretInfo
- type GithubHook
- type GithubRepositories
- type GithubRepository
- type Hook
- type Hooks
- type Project
- type Projects
- type PublicKeyOption
- type PublicKeyOptions
- type Repositories
- type Repository
- type Secrets
- type Service
- type ServiceStreamClient
- type Stats
- type StreamClient
- type TriggerReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServiceSecretManager ¶ added in v1.1.10
type AuthServiceSecretManager interface {
GetPublicKeys(ctx context.Context) ([]DistributedKey, error)
StoreEncrypted(ctx context.Context, secretID string, encryptedKey []byte, encryptedData []byte, nonce []byte, distributedKeyID string) error
GetEncrypted(ctx context.Context, secretID string) (*EncryptedSecretInfo, error)
Delete(ctx context.Context, secretID string) error
Exists(ctx context.Context, secretID string) (bool, error)
List(ctx context.Context) ([]string, error)
CheckAndTriggerDKG(ctx context.Context, trigger TriggerReason) error
AttachStreams(authService peerService.CommandService)
Close() error
}
type BitbucketHook ¶
type BitbucketHook struct {
Id string
}
type Client ¶
type Client interface {
InjectStaticCertificate(domain string, data []byte) error
GetCertificate(domain string) (*tls.Certificate, error)
GetStaticCertificate(domain string) (*tls.Certificate, error)
GetRawCertificate(domain string) ([]byte, error)
GetRawStaticCertificate(domain string) ([]byte, error)
RegisterDomain(fqdn, projectID string) (*DomainRegistration, error)
Hooks() Hooks
Projects() Projects
Repositories() Repositories
Secrets() Secrets
Stats() Stats // TODO: rename State
Peers(...peerCore.ID) Client
Close()
}
type DistributedKey ¶ added in v1.1.10
type DomainRegistration ¶ added in v1.1.9
type EncryptedSecretInfo ¶ added in v1.1.10
type GithubHook ¶
func (*GithubHook) Bitbucket ¶
func (h *GithubHook) Bitbucket() (*BitbucketHook, error)
func (*GithubHook) Github ¶
func (h *GithubHook) Github() (*GithubHook, error)
type GithubRepositories ¶
type GithubRepository ¶
type GithubRepository interface {
Repository
PrivateKey() string
Project() string
}
type Hook ¶
type Hook interface {
Github() (*GithubHook, error)
Bitbucket() (*BitbucketHook, error)
}
type Project ¶
type Project struct {
Client
Id string
Name string
Provider string
Git struct {
Config Repository
Code Repository
}
}
type PublicKeyOption ¶ added in v1.1.10
type PublicKeyOption func(*PublicKeyOptions)
func Limit ¶ added in v1.1.10
func Limit(limit int) PublicKeyOption
type PublicKeyOptions ¶ added in v1.1.10
type PublicKeyOptions struct {
Limit int
}
type Repositories ¶
type Repositories interface {
Github() GithubRepositories
}
type Repository ¶
type Secrets ¶ added in v1.1.10
type Secrets interface {
Store(ctx context.Context, secretID string, plaintext []byte) error
Retrieve(ctx context.Context, secretID string) ([]byte, error)
Delete(ctx context.Context, secretID string) error
Exists(ctx context.Context, secretID string) (bool, error)
List(ctx context.Context) ([]string, error)
PublicKeys(ctx context.Context, opts ...PublicKeyOption) ([]DistributedKey, error)
}
type ServiceStreamClient ¶ added in v1.1.10
type StreamClient ¶ added in v1.1.10
type TriggerReason ¶ added in v1.1.10
type TriggerReason int
const ( TriggerFirstSecret TriggerReason = iota TriggerFirstNode TriggerInterval )
Click to show internal directories.
Click to hide internal directories.