desiredstateserver

package
v0.0.0-...-f627d75 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: Apache-2.0, MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesiredStateServer

type DesiredStateServer struct {
	Apps                    []DesiredAppState
	NumberOfCompleteFetches int
	// contains filtered or unexported fields
}

func NewDesiredStateServer

func NewDesiredStateServer(port int) *DesiredStateServer

func (*DesiredStateServer) GetNumberOfCompleteFetches

func (server *DesiredStateServer) GetNumberOfCompleteFetches() int

func (*DesiredStateServer) Reset

func (server *DesiredStateServer) Reset()

func (*DesiredStateServer) SetDesiredState

func (server *DesiredStateServer) SetDesiredState(newState []DesiredAppState)

func (*DesiredStateServer) SpinUp

func (server *DesiredStateServer) SpinUp()

func (*DesiredStateServer) URL

func (server *DesiredStateServer) URL() string

type DesiredStateServerInterface

type DesiredStateServerInterface interface {
	SpinUp()
	SetDesiredState([]DesiredAppState)
	URL() string
}

type DesiredStateServerResponse

type DesiredStateServerResponse struct {
	Results   map[string]DesiredAppState `json:"results"`
	BulkToken struct {
		Id int `json:"id"`
	} `json:"bulk_token"`
}

Jump to

Keyboard shortcuts

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