Documentation
¶
Index ¶
- func MakeCreateNodePoolsEndpoint(service cluster.Service) endpoint.Endpoint
- func MakeDeleteClusterEndpoint(service cluster.Service) endpoint.Endpoint
- func MakeDeleteNodePoolEndpoint(service cluster.Service) endpoint.Endpoint
- func MakeListNodePoolsEndpoint(service cluster.Service) endpoint.Endpoint
- func MakeUpdateClusterEndpoint(service cluster.Service) endpoint.Endpoint
- func MakeUpdateNodePoolEndpoint(service cluster.Service) endpoint.Endpoint
- func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)
- type CreateNodePoolsRequest
- type CreateNodePoolsResponse
- type DeleteClusterRequest
- type DeleteClusterResponse
- type DeleteNodePoolRequest
- type DeleteNodePoolResponse
- type Endpoints
- type ListNodePoolsRequest
- type ListNodePoolsResponse
- type UpdateClusterRequest
- type UpdateClusterResponse
- type UpdateNodePoolRequest
- type UpdateNodePoolResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCreateNodePoolsEndpoint ¶
MakeCreateNodePoolsEndpoint returns an endpoint for the matching method of the underlying service.
func MakeDeleteClusterEndpoint ¶
MakeDeleteClusterEndpoint returns an endpoint for the matching method of the underlying service.
func MakeDeleteNodePoolEndpoint ¶
MakeDeleteNodePoolEndpoint returns an endpoint for the matching method of the underlying service.
func MakeListNodePoolsEndpoint ¶
MakeListNodePoolsEndpoint returns an endpoint for the matching method of the underlying service.
func MakeUpdateClusterEndpoint ¶
MakeUpdateClusterEndpoint returns an endpoint for the matching method of the underlying service.
func MakeUpdateNodePoolEndpoint ¶
MakeUpdateNodePoolEndpoint returns an endpoint for the matching method of the underlying service.
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)
RegisterHTTPHandlers mounts all of the service endpoints into an http.Handler
Types ¶
type CreateNodePoolsRequest ¶
type CreateNodePoolsRequest struct { ClusterID uint RawNodePools map[string]cluster.NewRawNodePool }
CreateNodePoolsRequest is a request struct for CreateNodePools endpoint.
type CreateNodePoolsResponse ¶
type CreateNodePoolsResponse struct {
Err error
}
CreateNodePoolsResponse is a response struct for CreateNodePools endpoint.
func (CreateNodePoolsResponse) Failed ¶
func (r CreateNodePoolsResponse) Failed() error
type DeleteClusterRequest ¶
type DeleteClusterRequest struct { ClusterIdentifier cluster.Identifier Options cluster.DeleteClusterOptions }
DeleteClusterRequest is a request struct for DeleteCluster endpoint.
type DeleteClusterResponse ¶
DeleteClusterResponse is a response struct for DeleteCluster endpoint.
func (DeleteClusterResponse) Failed ¶
func (r DeleteClusterResponse) Failed() error
type DeleteNodePoolRequest ¶
DeleteNodePoolRequest is a request struct for DeleteNodePool endpoint.
type DeleteNodePoolResponse ¶
DeleteNodePoolResponse is a response struct for DeleteNodePool endpoint.
func (DeleteNodePoolResponse) Failed ¶
func (r DeleteNodePoolResponse) Failed() error
type Endpoints ¶
type Endpoints struct { CreateNodePools endpoint.Endpoint DeleteCluster endpoint.Endpoint DeleteNodePool endpoint.Endpoint ListNodePools endpoint.Endpoint UpdateCluster endpoint.Endpoint UpdateNodePool endpoint.Endpoint }
Endpoints collects all of the endpoints that compose the underlying service. It's meant to be used as a helper struct, to collect all of the endpoints into a single parameter.
func MakeEndpoints ¶
func MakeEndpoints(service cluster.Service, middleware ...endpoint.Middleware) Endpoints
MakeEndpoints returns a(n) Endpoints struct where each endpoint invokes the corresponding method on the provided service.
type ListNodePoolsRequest ¶
type ListNodePoolsRequest struct {
ClusterID uint
}
ListNodePoolsRequest is a request struct for ListNodePools endpoint.
type ListNodePoolsResponse ¶
type ListNodePoolsResponse struct { NodePoolList cluster.RawNodePoolList Err error }
ListNodePoolsResponse is a response struct for ListNodePools endpoint.
func (ListNodePoolsResponse) Failed ¶
func (r ListNodePoolsResponse) Failed() error
type UpdateClusterRequest ¶
type UpdateClusterRequest struct { ClusterIdentifier cluster.Identifier ClusterUpdate cluster.ClusterUpdate }
UpdateClusterRequest is a request struct for UpdateCluster endpoint.
type UpdateClusterResponse ¶
type UpdateClusterResponse struct {
Err error
}
UpdateClusterResponse is a response struct for UpdateCluster endpoint.
func (UpdateClusterResponse) Failed ¶
func (r UpdateClusterResponse) Failed() error
type UpdateNodePoolRequest ¶
type UpdateNodePoolRequest struct { ClusterID uint NodePoolName string RawNodePoolUpdate cluster.RawNodePoolUpdate }
UpdateNodePoolRequest is a request struct for UpdateNodePool endpoint.
type UpdateNodePoolResponse ¶
UpdateNodePoolResponse is a response struct for UpdateNodePool endpoint.
func (UpdateNodePoolResponse) Failed ¶
func (r UpdateNodePoolResponse) Failed() error