dao

package
v0.0.0-...-81b74ec Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(s *Service) error

func Delete

func Delete(s *Service) error

func SetRunLevel

func SetRunLevel(region string, level int64) error

func SetServiceRunLevels

func SetServiceRunLevels(serviceName string, levels [6]bool) error

Types

type RunLevel

type RunLevel struct {
	Region string
	Level  int64
}

func ReadRunLevel

func ReadRunLevel(region string) (*RunLevel, error)

func ReadRunLevels

func ReadRunLevels() ([]*RunLevel, error)

type Service

type Service struct {
	Id              string `cf:"provisioned_service" key:"Id"`
	ServiceName     string `name:"servicename"`
	ServiceVersion  uint64 `name:"serviceversion"`
	MachineClass    string `name:"machineclass"`
	NoFileSoftLimit uint64 `name:"nofilesoftlimit"`
	NoFileHardLimit uint64 `name:"nofilehardlimit"`
	ServiceType     uint64 `name:"servicetype"`
}

func Provisioned

func Provisioned(machineClass string) ([]*Service, error)

func Read

func Read(name string, version uint64, class string) (*Service, error)

func (*Service) ToProto

func (s *Service) ToProto() *pproto.Service

type ServiceRunLevels

type ServiceRunLevels struct {
	ServiceName string
	Levels      [6]bool
}

func ReadServiceRunLevel

func ReadServiceRunLevel(serviceName string) (*ServiceRunLevels, error)

func ReadServiceRunLevels

func ReadServiceRunLevels() ([]*ServiceRunLevels, error)

Jump to

Keyboard shortcuts

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