util

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidServiceType

func IsValidServiceType(serviceType string) bool

Types

type Retention

type Retention struct {
	Days  int
	Files int
}

type Service

type Service struct {
	Name                    string
	Label                   string
	Plan                    string
	Tags                    []string
	Timeout                 time.Duration
	Schedule                string
	Retention               Retention
	DirectS3                bool
	DisableColumnStatistics bool
	ForceImport             bool
	LogStdErr               bool
	LocalBackupPath         string
	IgnoreTables            []string
	BackupOptions           []string
	RestoreOptions          []string
}

swagger:response service

func (*Service) Key added in v1.5.0

func (s *Service) Key() string

func (*Service) Type

func (s *Service) Type() ServiceType

type ServiceType

type ServiceType int
const (
	Postgres ServiceType = iota
	MySQL
	MongoDB
	Redis
	Elasticsearch
)

func ParseServiceType

func ParseServiceType(serviceType string) ServiceType

func (ServiceType) String

func (s ServiceType) String() string

type Services added in v1.5.0

type Services []Service

swagger:response services

Jump to

Keyboard shortcuts

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