clusterdriver

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateNodePoolsEndpoint

func MakeCreateNodePoolsEndpoint(service cluster.Service) endpoint.Endpoint

MakeCreateNodePoolsEndpoint returns an endpoint for the matching method of the underlying service.

func MakeDeleteClusterEndpoint

func MakeDeleteClusterEndpoint(service cluster.Service) endpoint.Endpoint

MakeDeleteClusterEndpoint returns an endpoint for the matching method of the underlying service.

func MakeDeleteNodePoolEndpoint

func MakeDeleteNodePoolEndpoint(service cluster.Service) endpoint.Endpoint

MakeDeleteNodePoolEndpoint returns an endpoint for the matching method of the underlying service.

func MakeListNodePoolsEndpoint

func MakeListNodePoolsEndpoint(service cluster.Service) endpoint.Endpoint

MakeListNodePoolsEndpoint returns an endpoint for the matching method of the underlying service.

func MakeUpdateClusterEndpoint

func MakeUpdateClusterEndpoint(service cluster.Service) endpoint.Endpoint

MakeUpdateClusterEndpoint returns an endpoint for the matching method of the underlying service.

func MakeUpdateNodePoolEndpoint

func MakeUpdateNodePoolEndpoint(service cluster.Service) endpoint.Endpoint

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

type DeleteClusterResponse struct {
	Deleted bool
	Err     error
}

DeleteClusterResponse is a response struct for DeleteCluster endpoint.

func (DeleteClusterResponse) Failed

func (r DeleteClusterResponse) Failed() error

type DeleteNodePoolRequest

type DeleteNodePoolRequest struct {
	ClusterID uint
	Name      string
}

DeleteNodePoolRequest is a request struct for DeleteNodePool endpoint.

type DeleteNodePoolResponse

type DeleteNodePoolResponse struct {
	Deleted bool
	Err     error
}

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

type UpdateNodePoolResponse struct {
	ProcessID string
	Err       error
}

UpdateNodePoolResponse is a response struct for UpdateNodePool endpoint.

func (UpdateNodePoolResponse) Failed

func (r UpdateNodePoolResponse) Failed() error

Jump to

Keyboard shortcuts

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