dc

package
v9.99.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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, seedsClientGetter provider.SeedClientGetter) endpoint.Endpoint

CreateEndpoint an HTTP endpoint that creates the specified apiv1.Datacenter

func DecodeCreateDCReq

func DecodeCreateDCReq(c context.Context, r *http.Request) (interface{}, error)

DecodeCreateDCReq decodes http request into createDCReq

func DecodeDeleteDCReq

func DecodeDeleteDCReq(c context.Context, r *http.Request) (interface{}, error)

DecodeDeleteDCReq decodes http request into deleteDCReq

func DecodeForProviderDCGetReq

func DecodeForProviderDCGetReq(c context.Context, r *http.Request) (interface{}, error)

DecodeForProviderDCGetReq decodes http request into forProviderDCGetReq

func DecodeForProviderDCListReq

func DecodeForProviderDCListReq(c context.Context, r *http.Request) (interface{}, error)

DecodeForProviderDCListReq decodes http request into forProviderDCListReq

func DecodeGetDCForSeedReq

func DecodeGetDCForSeedReq(c context.Context, r *http.Request) (interface{}, error)

DecodeGetDCForSeedReq decodes http request into getDCForSeedReq

func DecodeLegacyDcReq

func DecodeLegacyDcReq(c context.Context, r *http.Request) (interface{}, error)

DecodeLegacyDcReq decodes http request into LegacyDCReq

func DecodeListDCForSeedReq

func DecodeListDCForSeedReq(c context.Context, r *http.Request) (interface{}, error)

DecodeListDCForSeedReq decodes http request into listDCForSeedReq

func DecodePatchDCReq

func DecodePatchDCReq(c context.Context, r *http.Request) (interface{}, error)

DecodePatchDCReq decodes http request into patchDCReq

func DecodeUpdateDCReq

func DecodeUpdateDCReq(c context.Context, r *http.Request) (interface{}, error)

DecodeUpdateDCReq decodes http request into updateDCReq

func DeleteEndpoint

func DeleteEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter,
	seedsClientGetter provider.SeedClientGetter) 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,
	seedsClientGetter provider.SeedClientGetter) endpoint.Endpoint

PatchEndpoint an HTTP endpoint that patches the specified apiv1.Datacenter

func UpdateEndpoint

func UpdateEndpoint(seedsGetter provider.SeedsGetter, userInfoGetter provider.UserInfoGetter,
	seedsClientGetter provider.SeedClientGetter) 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

Jump to

Keyboard shortcuts

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