provisioning

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowListItem

type AllowListItem struct {
	IPAddress string `json:"ip"`
	Comment   string `json:"comment"`
}

type AvailabilityZone added in v1.2.0

type AvailabilityZone struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Region   string `json:"region_name"`
	Provider string `json:"provider"`
}

type CreateServiceRequest

type CreateServiceRequest struct {
	Name               string          `json:"name"`
	ProjectID          string          `json:"project_id"`
	ServiceType        string          `json:"service_type"`
	Provider           string          `json:"provider"`
	Region             string          `json:"region"`
	Version            string          `json:"version"`
	Nodes              uint            `json:"nodes"`
	Architecture       string          `json:"architecture"`
	Size               string          `json:"size"`
	Topology           string          `json:"topology"`
	Storage            uint            `json:"storage"`
	VolumeIOPS         uint            `json:"volume_iops"`
	SSLEnabled         bool            `json:"ssl_enabled"`
	NoSQLEnabled       bool            `json:"nosql_enabled"`
	VolumeType         string          `json:"volume_type,omitempty"`
	AllowedAccounts    []string        `json:"endpoint_allowed_accounts,omitempty"`
	Mechanism          string          `json:"endpoint_mechanism,omitempty"`
	ReplicationEnabled bool            `json:"replication_enabled,omitempty"`
	PrimaryHost        string          `json:"primary_host,omitempty"`
	AllowList          []AllowListItem `json:"allow_list,omitempty"`
	MaxscaleNodes      uint            `json:"maxscale_nodes,omitempty"`
	MaxscaleSize       *string         `json:"maxscale_size,omitempty"`
	AvailabilityZone   string          `json:"availability_zone,omitempty"`
}

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Host     string `json:"host"`
}

type Endpoint

type Endpoint struct {
	Name            string          `json:"name"`
	Ports           []Port          `json:"ports"`
	Mechanism       string          `json:"mechanism,omitempty"`
	AllowedAccounts []string        `json:"allowed_accounts,omitempty"`
	EndpointService string          `json:"endpoint_service,omitempty"`
	Visibility      string          `json:"visibility"`
	AllowList       []AllowListItem `json:"allow_list,omitempty"`
}

type PatchServiceEndpointsRequest

type PatchServiceEndpointsRequest []ServiceEndpoint

PatchServiceEndpointsRequest godoc

type PatchServiceEndpointsResponse

type PatchServiceEndpointsResponse []ServiceEndpoint

PatchServiceEndpointsResponse godoc

type Port

type Port struct {
	Name    string `json:"name"`
	Port    int    `json:"port"`
	Purpose string `json:"purpose"`
}

type PowerStateRequest

type PowerStateRequest struct {
	IsActive bool `json:"is_active"`
}

type ReadAllowListResponse

type ReadAllowListResponse []struct {
	AllowList []AllowListItem `json:"allow_list"`
}

type Service

type Service struct {
	ID            string     `json:"id"`
	Name          string     `json:"name"`
	Region        string     `json:"region"`
	Provider      string     `json:"provider"`
	Tier          string     `json:"tier"`
	Topology      string     `json:"topology"`
	Version       string     `json:"version"`
	Architecture  string     `json:"architecture"`
	Size          string     `json:"size"`
	Nodes         int        `json:"nodes"`
	SSLEnabled    bool       `json:"ssl_enabled"`
	NosqlEnabled  bool       `json:"nosql_enabled"`
	FQDN          string     `json:"fqdn"`
	Status        string     `json:"status"`
	CreatedOn     int        `json:"created_on"`
	UpdatedOn     int        `json:"updated_on"`
	CreatedBy     string     `json:"created_by"`
	UpdatedBy     string     `json:"updated_by"`
	Endpoints     []Endpoint `json:"endpoints"`
	StorageVolume struct {
		Size       int    `json:"size"`
		VolumeType string `json:"volume_type"`
		IOPS       int    `json:"iops"`
	} `json:"storage_volume"`
	OutboundIps        []string `json:"outbound_ips"`
	IsActive           bool     `json:"is_active"`
	ServiceType        string   `json:"service_type"`
	ReplicationEnabled bool     `json:"replication_enabled"`
	PrimaryHost        string   `json:"primary_host"`
	MaxscaleNodes      uint     `json:"maxscale_nodes,omitempty"`
	MaxscaleSize       *string  `json:"maxscale_size,omitempty"`
	AvailabilityZone   string   `json:"availability_zone,omitempty"`
}

type ServiceEndpoint

type ServiceEndpoint struct {
	Mechanism       string   `json:"mechanism,omitempty"`
	AllowedAccounts []string `json:"allowed_accounts,omitempty"`
	Visibility      string   `json:"visibility"`
	EndpointService string   `json:"endpoint_service,omitempty"`
}

ServiceEndpoint is service endpoint dto

type UpdateServiceNodesNumberRequest

type UpdateServiceNodesNumberRequest struct {
	Nodes int64 `json:"nodes,omitempty"`
}

type UpdateServiceSizeRequest

type UpdateServiceSizeRequest struct {
	Size string `json:"size,omitempty"`
}

type UpdateStorageRequest

type UpdateStorageRequest struct {
	Size int64 `json:"size,omitempty"`
	IOPS int64 `json:"iops,omitempty"`
}

type Version

type Version struct {
	Id              string    `json:"id"`
	Name            string    `json:"name"`
	Version         string    `json:"version"`
	Topology        string    `json:"topology"`
	Product         string    `json:"product"`
	DisplayName     string    `json:"display_name"`
	IsMajor         bool      `json:"is_major"`
	ReleaseDate     time.Time `json:"release_date"`
	ReleaseNotesUrl string    `json:"release_notes_url"`
}

Jump to

Keyboard shortcuts

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