integratedservicesdriver

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 MakeActivateEndpoint

func MakeActivateEndpoint(service integratedservices.Service) endpoint.Endpoint

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

func MakeDeactivateEndpoint

func MakeDeactivateEndpoint(service integratedservices.Service) endpoint.Endpoint

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

func MakeDetailsEndpoint

func MakeDetailsEndpoint(service integratedservices.Service) endpoint.Endpoint

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

func MakeListEndpoint

func MakeListEndpoint(service integratedservices.Service) endpoint.Endpoint

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

func MakeUpdateEndpoint

func MakeUpdateEndpoint(service integratedservices.Service) endpoint.Endpoint

MakeUpdateEndpoint 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 ActivateRequest

type ActivateRequest struct {
	ClusterID   uint
	ServiceName string
	Spec        map[string]interface{}
}

ActivateRequest is a request struct for Activate endpoint.

type ActivateResponse

type ActivateResponse struct {
	Err error
}

ActivateResponse is a response struct for Activate endpoint.

func (ActivateResponse) Failed

func (r ActivateResponse) Failed() error

type DeactivateRequest

type DeactivateRequest struct {
	ClusterID   uint
	ServiceName string
}

DeactivateRequest is a request struct for Deactivate endpoint.

type DeactivateResponse

type DeactivateResponse struct {
	Err error
}

DeactivateResponse is a response struct for Deactivate endpoint.

func (DeactivateResponse) Failed

func (r DeactivateResponse) Failed() error

type DetailsRequest

type DetailsRequest struct {
	ClusterID   uint
	ServiceName string
}

DetailsRequest is a request struct for Details endpoint.

type DetailsResponse

type DetailsResponse struct {
	Service integratedservices.IntegratedService
	Err     error
}

DetailsResponse is a response struct for Details endpoint.

func (DetailsResponse) Failed

func (r DetailsResponse) Failed() error

type Endpoints

type Endpoints struct {
	Activate   endpoint.Endpoint
	Deactivate endpoint.Endpoint
	Details    endpoint.Endpoint
	List       endpoint.Endpoint
	Update     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 integratedservices.Service, middleware ...endpoint.Middleware) Endpoints

MakeEndpoints returns a(n) Endpoints struct where each endpoint invokes the corresponding method on the provided service.

type ListRequest

type ListRequest struct {
	ClusterID uint
}

ListRequest is a request struct for List endpoint.

type ListResponse

type ListResponse struct {
	Services []integratedservices.IntegratedService
	Err      error
}

ListResponse is a response struct for List endpoint.

func (ListResponse) Failed

func (r ListResponse) Failed() error

type UpdateRequest

type UpdateRequest struct {
	ClusterID   uint
	ServiceName string
	Spec        map[string]interface{}
}

UpdateRequest is a request struct for Update endpoint.

type UpdateResponse

type UpdateResponse struct {
	Err error
}

UpdateResponse is a response struct for Update endpoint.

func (UpdateResponse) Failed

func (r UpdateResponse) Failed() error

Jump to

Keyboard shortcuts

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