util

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 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
}

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