config

package
v0.0.0-...-38445c1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerConfiguration

type BrokerConfiguration struct {
	Services            []Service     `json:"services" validate:"min=1,dive"`
	Username            string        `json:"username" validate:"printascii,min=5"`
	Password            string        `json:"password" validate:"printascii,min=5"`
	CatalogResponse     int           `json:"catalog_response,omitempty" validate:"min=0,max=600"`
	ProvisionResponse   int           `json:"provision_response,omitempty" validate:"min=0,max=600"`
	UpdateResponse      int           `json:"update_response,omitempty" validate:"min=0,max=600"`
	DeprovisionResponse int           `json:"deprovision_response,omitempty" validate:"min=0,max=600"`
	BindResponse        int           `json:"bind_response,omitempty" validate:"min=0,max=600"`
	UnbindResponse      int           `json:"unbind_response,omitempty" validate:"min=0,max=600"`
	GetBindingResponse  int           `json:"get_binding_response,omitempty" validate:"min=0,max=600"`
	AsyncResponseDelay  time.Duration `json:"async_response_delay"`
}

type Cost

type Cost struct {
	Amount map[string]float64 `json:"amount"`
	Unit   string             `json:"unit"`
}

type MaintenanceInfo

type MaintenanceInfo struct {
	Version     string `json:"version,omitempty"`
	Description string `json:"description,omitempty"`
}

type NewBrokerResponse

type NewBrokerResponse struct {
	GUID string `json:"guid"`
}

type Plan

type Plan struct {
	Name            string           `json:"name" validate:"printascii,min=5"`
	ID              string           `json:"id,omitempty"`
	Description     string           `json:"description,omitempty"`
	MaintenanceInfo *MaintenanceInfo `json:"maintenance_info,omitempty"`
	Free            bool             `json:"free"`
	Costs           []Cost           `json:"costs"`
}

type Service

type Service struct {
	Name                 string   `json:"name" validate:"printascii,min=5"`
	ID                   string   `json:"id,omitempty"`
	Description          string   `json:"description,omitempty"`
	DocumentationURL     string   `json:"documentation_url,omitempty" validate:"url"`
	Tags                 []string `json:"tags"`
	Plans                []Plan   `json:"plans" validate:"min=1,dive"`
	Shareable            bool     `json:"shareable"`
	Bindable             bool     `json:"bindable"`
	PlanUpdatable        bool     `json:"plan_updateable"`
	InstancesRetrievable bool     `json:"instances_retrievable"`
	Requires             []string `json:"requires,omitempty"`
}

Jump to

Keyboard shortcuts

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