Documentation ¶
Index ¶
- func DecodeLegacyDcReq(c context.Context, r *http.Request) (interface{}, error)
- func GetDatacenter(userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, ...) (apiv1.Datacenter, error)
- func GetEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func ListEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- type LegacyDCReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeLegacyDcReq ¶
DecodeLegacyDcReq decodes http request into LegacyDCReq
func GetDatacenter ¶
func GetDatacenter(userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, datacenterToGet string) (apiv1.Datacenter, error)
GetDatacenter a function that gives you a single apiv1.Datacenter object
func GetEndpoint ¶
func GetEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
GetEndpoint an HTTP endpoint that returns a single apiv1.Datacenter object
func ListEndpoint ¶
func ListEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListEndpoint an HTTP endpoint that returns a list of apiv1.Datacenter
Types ¶
type LegacyDCReq ¶
type LegacyDCReq struct { // in: path // required: true DC string `json:"dc"` }
LegacyDCReq represent a request for datacenter specific data swagger:parameters getDatacenter
func (LegacyDCReq) GetDC ¶
func (req LegacyDCReq) GetDC() string
GetDC returns the name of the datacenter in the request
Click to show internal directories.
Click to hide internal directories.