tsuru

package
v0.0.0-...-57b808a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

func NewInstance(i *Instance) error

NewInstance creates a new service instance.

func RemoveInstance

func RemoveInstance(i *Instance) error

RemoveInstance removes an auto scale instance

Types

type Instance

type Instance struct {
	ID   bson.ObjectId `bson:"_id" json:"-"`
	Name string
	User string
	Team string
	Apps []string `json:",omitempty"`
}

Instance represents a tsuru service instance.

func FindServiceInstance

func FindServiceInstance(token string) ([]Instance, error)

FindServiceInstance returns an auto scale instance

func GetInstanceByName

func GetInstanceByName(name string) (*Instance, error)

GetInstanceByName finds a service instance by name.

func (*Instance) AddApp

func (i *Instance) AddApp(app, host string) error

AddApp add new app to an instance.

func (*Instance) RemoveApp

func (i *Instance) RemoveApp(app, host string) error

RemoveApp removes app from an instance.

Jump to

Keyboard shortcuts

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