dao

package
v0.0.0-...-961e39e Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceTypeByName = map[ServiceType]string{
	0: "Process",
	1: "Container",
}

Functions

This section is empty.

Types

type ProvisionedService

type ProvisionedService struct {
	ServiceName     string
	ServiceVersion  uint64
	MachineClass    string
	NoFileSoftLimit uint64
	NoFileHardLimit uint64
	ServiceType     ServiceType
}

type ProvisionedServices

type ProvisionedServices []*ProvisionedService

func CachedServices

func CachedServices(machineClass string) (ProvisionedServices, error)

func Services

func Services(machineClass string) (ProvisionedServices, error)

func (ProvisionedServices) Contains

func (ps ProvisionedServices) Contains(name string, version uint64, typ ServiceType) bool

Contains will check if a list of provisioned services contains a specified service (specified by name, version and type)

type ServiceType

type ServiceType uint
const (
	ServiceTypeProcess   ServiceType = 0
	ServiceTypeContainer ServiceType = 1
)

Jump to

Keyboard shortcuts

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