api

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buildpack

type Buildpack struct {
	Name string `json:"name"`
	Id   string `json:"guid"`
}

type MessageHandler

type MessageHandler struct {
	UaaCli *core.UaaCli
	Config *core.AppConfig
	// contains filtered or unexported fields
}

func NewMessageHandler

func NewMessageHandler(
	pConf *core.AppConfig,
	pRouter *mux.Router,
	pQueue chan *gomail.Message) (*MessageHandler, error)

func (*MessageHandler) HandleMessage

func (self *MessageHandler) HandleMessage(pRes http.ResponseWriter, pReq *http.Request)

func (*MessageHandler) HandleMessageAll

func (self *MessageHandler) HandleMessageAll(pRes http.ResponseWriter, pReq *http.Request)

type MessageReqCtx

type MessageReqCtx struct {
	CCCli     core.CFClient
	UserMails map[string]string
	ReqData   MessageRequest
	ResData   MessageResponse
	// contains filtered or unexported fields
}

type MessageRequest

type MessageRequest struct {
	Users      []string `json:"users"`
	Spaces     []string `json:"spaces"`
	Orgs       []string `json:"orgs"`
	Services   []string `json:"services"`
	BuildPacks []string `json:"buildpacks"`
	Recipients []string `json:"recipients"`
	Subject    string   `json:"subject"`
	Message    string   `json:"message"`
}

type MessageResponse

type MessageResponse struct {
	Recipients []string `json:"recipients"`
	Subject    string   `json:"subject"`
	Message    string   `json:"message"`
	From       string   `json:"from"`
}

type ObjectHandler

type ObjectHandler struct {
	Config    *core.AppConfig
	CCCreator func(*http.Request) core.CFClient
}

func NewObjectHandler

func NewObjectHandler(pConf *core.AppConfig, pRouter *mux.Router) *ObjectHandler

type Org

type Org struct {
	Name string `json:"name"`
	Id   string `json:"guid"`
}

type Service

type Service struct {
	Name string `json:"name"`
	Id   string `json:"guid"`
}

type Space

type Space struct {
	Name  string `json:"name"`
	Id    string `json:"guid"`
	OrgId string `json:"org_guid"`
}

type User

type User struct {
	Name string `json:"name"`
	Id   string `json:"guid"`
}

Jump to

Keyboard shortcuts

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