Documentation ¶
Index ¶
- Constants
- type Cache
- type CacheGen
- type Client
- type EncryptionDetails
- type EncryptionDetailsResult
- type Entries
- type Entry
- type JWTDetails
- type JWTDetailsResult
- type License
- type LicenseClient
- type MaintenanceClient
- type MemberMaintenanceMode
- type MemberMaintenanceRequest
- type Seconds
- type ServerInfo
- type ServerProgress
- type ServerStatus
- type Sha
- type TLSDetails
- type TLSDetailsResult
- type TLSKeyFile
Constants ¶
View Source
const ( MemberMaintenanceModeMaintenance MemberMaintenanceMode = "maintenance" MemberMaintenanceModeNormal MemberMaintenanceMode = "normal" MemberMaintenanceUrl = "/_admin/cluster/maintenance/%s" DefaultMaintenanceModeTimeout = Seconds(15 * time.Minute) )
View Source
const ( // ServerProgressPhaseInWait describes success progress state of a server. ServerProgressPhaseInWait = "in wait" // ServerStatusEndpoint describes endpoint of a server status. ServerStatusEndpoint = "/_admin/status" // ServerApiVersionEndpoint describes endpoint of a server version. ServerApiVersionEndpoint = "/_api/version" // ServerAvailabilityEndpoint describes endpoint of a server availability. ServerAvailabilityEndpoint = "/_admin/server/availability" )
View Source
const AdminLicenseUrl = "/_admin/license"
View Source
const DeleteExpiredJobsURL = "/_api/job/expired"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { GetAuth() conn.Auth Connection(ctx context.Context, host string) (driver.Connection, error) GetRaw(group api.ServerGroup, id string) (conn.Connection, error) Get(ctx context.Context, group api.ServerGroup, id string) (driver.Client, error) GetDatabase(ctx context.Context) (driver.Client, error) GetAgency(ctx context.Context, agencyIDs ...string) (agency.Agency, error) }
type CacheGen ¶
type CacheGen interface { reconciler.DeploymentEndpoints reconciler.DeploymentInfoGetter }
type Client ¶
type Client interface { LicenseClient MaintenanceClient 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) DeleteExpiredJobs(ctx context.Context, timeout time.Duration) error }
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 Entry ¶
type JWTDetails ¶
type JWTDetails struct {
Result JWTDetailsResult `json:"result,omitempty"`
}
type JWTDetailsResult ¶
type LicenseClient ¶
type MaintenanceClient ¶
type MemberMaintenanceMode ¶
type MemberMaintenanceMode string
type MemberMaintenanceRequest ¶
type MemberMaintenanceRequest struct { Mode MemberMaintenanceMode `json:"mode"` Timeout *Seconds `json:"timeout,omitempty"` }
type ServerInfo ¶
type ServerInfo struct {
ServerProgress ServerProgress `json:"progress,omitempty"`
}
ServerInfo describes server information.
type ServerProgress ¶
type ServerProgress struct { // Phase is a name of the lifecycle phase the instance is currently in. Phase string `json:"phase,omitempty"` // Feature is internal name of the feature that is currently being prepared Feature string `json:"feature,omitempty"` // Current recovery sequence number value, if the instance is currently recovering. // If the instance is already past the recovery, this attribute contains the last handled recovery sequence number. RecoveryTick int `json:"recoveryTick,omitempty"` }
ServerProgress describes server progress.
type ServerStatus ¶
type ServerStatus struct {
ServerInfo ServerInfo `json:"serverInfo,omitempty"`
}
ServerStatus describes server status.
func (ServerStatus) GetProgress ¶
func (s ServerStatus) GetProgress() (string, bool)
GetProgress returns human-readable progress status of the server, and true if server is ready.
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 ¶
Click to show internal directories.
Click to hide internal directories.