client

package
v0.18.8-preview-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetTLS(ctx context.Context) (TLSDetails, error)
	RefreshTLS(ctx context.Context) (TLSDetails, error)

	GetEncryption(ctx context.Context) (EncryptionDetails, error)
	RefreshEncryption(ctx context.Context) (EncryptionDetails, error)

	GetJWT(ctx context.Context) (JWTDetails, error)
	RefreshJWT(ctx context.Context) (JWTDetails, error)
}

func NewClient

func NewClient(c driver.Client) Client

type EncryptionDetails

type EncryptionDetails struct {
	Result EncryptionDetailsResult `json:"result,omitempty"`
}

type EncryptionDetailsResult

type EncryptionDetailsResult struct {
	Keys Entries `json:"encryption-keys,omitempty"`
}

func (EncryptionDetailsResult) KeysPresent

func (e EncryptionDetailsResult) KeysPresent(m map[string][]byte) bool

type Entries

type Entries []Entry

func (Entries) Contains

func (e Entries) Contains(s string) bool

func (Entries) ContainsSha

func (e Entries) ContainsSha(s string) bool

func (Entries) KeysPresent

func (e Entries) KeysPresent(m map[string][]byte) bool

type Entry

type Entry struct {
	Sha256    *Sha `json:"sha256,omitempty"`
	Sha256Old *Sha `json:"SHA256,omitempty"`
}

func (*Entry) GetSHA

func (e *Entry) GetSHA() Sha

type JWTDetails

type JWTDetails struct {
	Result JWTDetailsResult `json:"result,omitempty"`
}

type JWTDetailsResult

type JWTDetailsResult struct {
	Active  *Entry  `json:"active,omitempty"`
	Passive Entries `json:"passive,omitempty"`
}

type Sha

type Sha string

func (Sha) Checksum

func (s Sha) Checksum() string

func (Sha) String

func (s Sha) String() string

func (Sha) Type

func (s Sha) Type() string

type TLSDetails

type TLSDetails struct {
	Result TLSDetailsResult `json:"result,omitempty"`
}

type TLSDetailsResult

type TLSDetailsResult struct {
	KeyFile TLSKeyFile            `json:"keyfile,omitempty"`
	SNI     map[string]TLSKeyFile `json:"SNI,omitempty"`
}

type TLSKeyFile

type TLSKeyFile struct {
	*Entry `json:",inline"`

	PrivateKeyHash string   `json:"privateKeySHA256,omitempty"`
	Certificates   []string `json:"certificates,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL