Documentation ¶
Index ¶
- func ConvertInternalDCToExternalSpec(dc *kubermaticv1.Datacenter, seedName string) (*apiv1.DatacenterSpec, error)
- func CreateEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, ...) endpoint.Endpoint
- func DecodeCreateDCReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeDeleteDCReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeForProviderDCGetReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeForProviderDCListReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeGetDCForSeedReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeLegacyDcReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeListDCForSeedReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodePatchDCReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeUpdateDCReq(c context.Context, r *http.Request) (interface{}, error)
- func DeleteEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, ...) endpoint.Endpoint
- func GetDatacenter(userInfo *provider.UserInfo, seedsGetter provider.SeedsGetter, ...) (apiv1.Datacenter, error)
- func GetEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func GetEndpointForProvider(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func GetEndpointForSeed(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func ListEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func ListEndpointForProvider(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func ListEndpointForSeed(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
- func PatchEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, ...) endpoint.Endpoint
- func UpdateEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, ...) endpoint.Endpoint
- type LegacyDCReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertInternalDCToExternalSpec ¶
func ConvertInternalDCToExternalSpec(dc *kubermaticv1.Datacenter, seedName string) (*apiv1.DatacenterSpec, error)
func CreateEndpoint ¶
func CreateEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, masterClient client.Client) endpoint.Endpoint
CreateEndpoint an HTTP endpoint that creates the specified apiv1.Datacenter.
func DecodeCreateDCReq ¶
DecodeCreateDCReq decodes http request into createDCReq.
func DecodeDeleteDCReq ¶
DecodeDeleteDCReq decodes http request into deleteDCReq.
func DecodeForProviderDCGetReq ¶
DecodeForProviderDCGetReq decodes http request into forProviderDCGetReq.
func DecodeForProviderDCListReq ¶
DecodeForProviderDCListReq decodes http request into forProviderDCListReq.
func DecodeGetDCForSeedReq ¶
DecodeGetDCForSeedReq decodes http request into getDCForSeedReq.
func DecodeLegacyDcReq ¶
DecodeLegacyDcReq decodes http request into LegacyDCReq.
func DecodeListDCForSeedReq ¶
DecodeListDCForSeedReq decodes http request into listDCForSeedReq.
func DecodePatchDCReq ¶
DecodePatchDCReq decodes http request into patchDCReq.
func DecodeUpdateDCReq ¶
DecodeUpdateDCReq decodes http request into updateDCReq.
func DeleteEndpoint ¶
func DeleteEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, masterClient client.Client) endpoint.Endpoint
DeleteEndpoint an HTTP endpoint that deletes the specified apiv1.Datacenter.
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 GetEndpointForProvider ¶
func GetEndpointForProvider(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
GetEndpointForProvider an HTTP endpoint that returns a specified apiv1.Datacenter for a specified provider.
func GetEndpointForSeed ¶
func GetEndpointForSeed(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
GetEndpointForSeed an HTTP endpoint that returns a specified apiv1.Datacenter in the specified seed.
func ListEndpoint ¶
func ListEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListEndpoint an HTTP endpoint that returns a list of apiv1.Datacenter.
func ListEndpointForProvider ¶
func ListEndpointForProvider(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListEndpoint an HTTP endpoint that returns a list of apiv1.Datacenter for a specified provider.
func ListEndpointForSeed ¶
func ListEndpointForSeed(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
ListEndpointForSeed an HTTP endpoint that returns a list of apiv1.Datacenter for the specified seed.
func PatchEndpoint ¶
func PatchEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, masterClient client.Client) endpoint.Endpoint
PatchEndpoint an HTTP endpoint that patches the specified apiv1.Datacenter.
func UpdateEndpoint ¶
func UpdateEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter, masterClient client.Client) endpoint.Endpoint
UpdateEndpoint an HTTP endpoint that updates the specified 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.