types

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package types provides request structures for Database Lab HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloneCreateRequest

type CloneCreateRequest struct {
	ID        string                     `json:"id"`
	Protected bool                       `json:"protected"`
	DB        *DatabaseRequest           `json:"db"`
	Snapshot  *SnapshotCloneFieldRequest `json:"snapshot"`
	ExtraConf map[string]string          `json:"extra_conf"`
}

CloneCreateRequest represents clone params of a create request.

type CloneUpdateRequest

type CloneUpdateRequest struct {
	Protected bool `json:"protected"`
}

CloneUpdateRequest represents params of an update request.

type Config

type Config struct {
	ObservationInterval uint64 `json:"observation_interval"`
	MaxLockDuration     uint64 `json:"max_lock_duration"`
	MaxDuration         uint64 `json:"max_duration"`
}

Config defines configuration options for observer.

type DatabaseRequest

type DatabaseRequest struct {
	Username   string `json:"username"`
	Password   string `json:"password"`
	Restricted bool   `json:"restricted"`
	DBName     string `json:"db_name"`
}

DatabaseRequest represents database params of a clone request.

type SnapshotCloneFieldRequest

type SnapshotCloneFieldRequest struct {
	ID string `json:"id"`
}

SnapshotCloneFieldRequest represents snapshot params of a create request.

type StartObservationRequest

type StartObservationRequest struct {
	CloneID string            `json:"clone_id"`
	Config  Config            `json:"config"`
	Tags    map[string]string `json:"tags"`
	DBName  string            `json:"db_name"`
}

StartObservationRequest represents a request for the start observation endpoint.

type StopObservationRequest

type StopObservationRequest struct {
	CloneID      string `json:"clone_id"`
	OverallError bool   `json:"overall_error"`
}

StopObservationRequest represents a request for the stop observation endpoint.

type SummaryObservationRequest added in v2.4.0

type SummaryObservationRequest struct {
	CloneID   string `json:"clone_id"`
	SessionID string `json:"session_id"`
}

SummaryObservationRequest represents a request for the summary observation endpoint.

Jump to

Keyboard shortcuts

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