Documentation ¶
Index ¶
- func DecodeDatacentersReq(c context.Context, r *http.Request) (interface{}, error)
- 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 DCsReq
- type LegacyDCReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeDatacentersReq ¶
DecodeDatacentersReq decodes HTTP request into DCsReq
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 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.