helmdriver

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAddRepositoryEndpoint

func MakeAddRepositoryEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeCheckReleaseEndpoint

func MakeCheckReleaseEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeCheckReleasesEndpoint

func MakeCheckReleasesEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeDeleteReleaseEndpoint

func MakeDeleteReleaseEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeDeleteRepositoryEndpoint

func MakeDeleteRepositoryEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeGetChartEndpoint

func MakeGetChartEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeGetReleaseEndpoint

func MakeGetReleaseEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeGetReleaseResourcesEndpoint

func MakeGetReleaseResourcesEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeGetReleasesRestAPIEndpoint

func MakeGetReleasesRestAPIEndpoint(service helm.RestAPI) endpoint.Endpoint

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

func MakeInstallReleaseEndpoint

func MakeInstallReleaseEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeListChartsEndpoint

func MakeListChartsEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeListClusterChartsEndpoint

func MakeListClusterChartsEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeListReleasesEndpoint

func MakeListReleasesEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeListRepositoriesEndpoint

func MakeListRepositoriesEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeModifyRepositoryEndpoint

func MakeModifyRepositoryEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeUpdateRepositoryEndpoint

func MakeUpdateRepositoryEndpoint(service helm.Service) endpoint.Endpoint

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

func MakeUpgradeReleaseEndpoint

func MakeUpgradeReleaseEndpoint(service helm.Service) endpoint.Endpoint

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

func RegisterHTTPHandlers

func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)

func RegisterReleaserHTTPHandlers

func RegisterReleaserHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)

func RegisterRestAPI

func RegisterRestAPI(endpoints RestAPIEndpoints, router *mux.Router, options ...kithttp.ServerOption)

Types

type AddRepositoryRequest

type AddRepositoryRequest struct {
	OrganizationID uint
	Repository     helm.Repository
}

AddRepositoryRequest is a request struct for AddRepository endpoint.

type AddRepositoryResponse

type AddRepositoryResponse struct {
	Err error
}

AddRepositoryResponse is a response struct for AddRepository endpoint.

func (AddRepositoryResponse) Failed

func (r AddRepositoryResponse) Failed() error

type CheckReleaseRequest

type CheckReleaseRequest struct {
	OrganizationID uint
	ClusterID      uint
	ReleaseName    string
	Options        helm.Options
}

CheckReleaseRequest is a request struct for CheckRelease endpoint.

type CheckReleaseResponse

type CheckReleaseResponse struct {
	R0  string
	Err error
}

CheckReleaseResponse is a response struct for CheckRelease endpoint.

func (CheckReleaseResponse) Failed

func (r CheckReleaseResponse) Failed() error

type CheckReleasesRequest

type CheckReleasesRequest struct {
	OrganizationID uint
	Releases       []helm.Release
}

CheckReleasesRequest is a request struct for CheckReleases endpoint.

type CheckReleasesResponse

type CheckReleasesResponse struct {
	R0  map[string]bool
	Err error
}

CheckReleasesResponse is a response struct for CheckReleases endpoint.

func (CheckReleasesResponse) Failed

func (r CheckReleasesResponse) Failed() error

type DeleteReleaseRequest

type DeleteReleaseRequest struct {
	OrganizationID uint
	ClusterID      uint
	ReleaseName    string
	Options        helm.Options
}

DeleteReleaseRequest is a request struct for DeleteRelease endpoint.

type DeleteReleaseResponse

type DeleteReleaseResponse struct {
	Err error
}

DeleteReleaseResponse is a response struct for DeleteRelease endpoint.

func (DeleteReleaseResponse) Failed

func (r DeleteReleaseResponse) Failed() error

type DeleteRepositoryRequest

type DeleteRepositoryRequest struct {
	OrganizationID uint
	RepoName       string
}

DeleteRepositoryRequest is a request struct for DeleteRepository endpoint.

type DeleteRepositoryResponse

type DeleteRepositoryResponse struct {
	Err error
}

DeleteRepositoryResponse is a response struct for DeleteRepository endpoint.

func (DeleteRepositoryResponse) Failed

func (r DeleteRepositoryResponse) Failed() error

type Endpoints

type Endpoints struct {
	AddRepository       endpoint.Endpoint
	CheckRelease        endpoint.Endpoint
	CheckReleases       endpoint.Endpoint
	DeleteRelease       endpoint.Endpoint
	DeleteRepository    endpoint.Endpoint
	GetChart            endpoint.Endpoint
	GetRelease          endpoint.Endpoint
	GetReleaseResources endpoint.Endpoint
	InstallRelease      endpoint.Endpoint
	ListCharts          endpoint.Endpoint
	ListClusterCharts   endpoint.Endpoint
	ListReleases        endpoint.Endpoint
	ListRepositories    endpoint.Endpoint
	ModifyRepository    endpoint.Endpoint
	UpdateRepository    endpoint.Endpoint
	UpgradeRelease      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 helm.Service, middleware ...endpoint.Middleware) Endpoints

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

type GetChartRequest

type GetChartRequest struct {
	OrganizationID uint
	ChartFilter    helm.ChartFilter
	Options        helm.Options
}

GetChartRequest is a request struct for GetChart endpoint.

type GetChartResponse

type GetChartResponse struct {
	ChartDetails helm.ChartDetails
	Err          error
}

GetChartResponse is a response struct for GetChart endpoint.

func (GetChartResponse) Failed

func (r GetChartResponse) Failed() error

type GetReleaseRequest

type GetReleaseRequest struct {
	OrganizationID uint
	ClusterID      uint
	ReleaseName    string
	Options        helm.Options
}

GetReleaseRequest is a request struct for GetRelease endpoint.

type GetReleaseResourcesRequest

type GetReleaseResourcesRequest struct {
	OrganizationID uint
	ClusterID      uint
	Release        helm.Release
	Options        helm.Options
}

GetReleaseResourcesRequest is a request struct for GetReleaseResources endpoint.

type GetReleaseResourcesResponse

type GetReleaseResourcesResponse struct {
	R0  []helm.ReleaseResource
	Err error
}

GetReleaseResourcesResponse is a response struct for GetReleaseResources endpoint.

func (GetReleaseResourcesResponse) Failed

type GetReleaseResponse

type GetReleaseResponse struct {
	R0  helm.Release
	Err error
}

GetReleaseResponse is a response struct for GetRelease endpoint.

func (GetReleaseResponse) Failed

func (r GetReleaseResponse) Failed() error

type GetReleasesRestAPIRequest

type GetReleasesRestAPIRequest struct {
	OrganizationID uint
	ClusterID      uint
	Filters        helm.ReleaseFilter
	Options        helm.Options
}

GetReleasesRestAPIRequest is a request struct for GetReleases endpoint.

type GetReleasesRestAPIResponse

type GetReleasesRestAPIResponse struct {
	ReleaseList []helm.DetailedRelease
	Err         error
}

GetReleasesRestAPIResponse is a response struct for GetReleases endpoint.

func (GetReleasesRestAPIResponse) Failed

func (r GetReleasesRestAPIResponse) Failed() error

type InstallReleaseRequest

type InstallReleaseRequest struct {
	OrganizationID uint
	ClusterID      uint
	ReleaseInput   helm.Release
	Options        helm.Options
}

InstallReleaseRequest is a request struct for InstallRelease endpoint.

type InstallReleaseResponse

type InstallReleaseResponse struct {
	Release helm.Release
	Err     error
}

InstallReleaseResponse is a response struct for InstallRelease endpoint.

func (InstallReleaseResponse) Failed

func (r InstallReleaseResponse) Failed() error

type ListChartsRequest

type ListChartsRequest struct {
	OrganizationID uint
	Filter         helm.ChartFilter
	Options        helm.Options
}

ListChartsRequest is a request struct for ListCharts endpoint.

type ListChartsResponse

type ListChartsResponse struct {
	Charts []interface{}
	Err    error
}

ListChartsResponse is a response struct for ListCharts endpoint.

func (ListChartsResponse) Failed

func (r ListChartsResponse) Failed() error

type ListClusterChartsRequest

type ListClusterChartsRequest struct {
	OrganizationID uint
	Options        helm.Options
}

ListClusterChartsRequest is a request struct for ListClusterCharts endpoint.

type ListClusterChartsResponse

type ListClusterChartsResponse struct {
	Charts []interface{}
	Err    error
}

ListClusterChartsResponse is a response struct for ListClusterCharts endpoint.

func (ListClusterChartsResponse) Failed

func (r ListClusterChartsResponse) Failed() error

type ListReleasesRequest

type ListReleasesRequest struct {
	OrganizationID uint
	ClusterID      uint
	Filters        helm.ReleaseFilter
	Options        helm.Options
}

ListReleasesRequest is a request struct for ListReleases endpoint.

type ListReleasesResponse

type ListReleasesResponse struct {
	R0  []helm.Release
	Err error
}

ListReleasesResponse is a response struct for ListReleases endpoint.

func (ListReleasesResponse) Failed

func (r ListReleasesResponse) Failed() error

type ListRepositoriesRequest

type ListRepositoriesRequest struct {
	OrganizationID uint
}

ListRepositoriesRequest is a request struct for ListRepositories endpoint.

type ListRepositoriesResponse

type ListRepositoriesResponse struct {
	Repos []helm.Repository
	Err   error
}

ListRepositoriesResponse is a response struct for ListRepositories endpoint.

func (ListRepositoriesResponse) Failed

func (r ListRepositoriesResponse) Failed() error

type ModifyRepositoryRequest

type ModifyRepositoryRequest struct {
	OrganizationID uint
	Repository     helm.Repository
}

ModifyRepositoryRequest is a request struct for ModifyRepository endpoint.

type ModifyRepositoryResponse

type ModifyRepositoryResponse struct {
	Err error
}

ModifyRepositoryResponse is a response struct for ModifyRepository endpoint.

func (ModifyRepositoryResponse) Failed

func (r ModifyRepositoryResponse) Failed() error

type RestAPIEndpoints

type RestAPIEndpoints struct {
	GetReleases endpoint.Endpoint
}

RestAPIEndpoints 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 MakeRestAPIEndpoints

func MakeRestAPIEndpoints(service helm.RestAPI, middleware ...endpoint.Middleware) RestAPIEndpoints

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

type UpdateRepositoryRequest

type UpdateRepositoryRequest struct {
	OrganizationID uint
	Repository     helm.Repository
}

UpdateRepositoryRequest is a request struct for UpdateRepository endpoint.

type UpdateRepositoryResponse

type UpdateRepositoryResponse struct {
	Err error
}

UpdateRepositoryResponse is a response struct for UpdateRepository endpoint.

func (UpdateRepositoryResponse) Failed

func (r UpdateRepositoryResponse) Failed() error

type UpgradeReleaseRequest

type UpgradeReleaseRequest struct {
	OrganizationID uint
	ClusterID      uint
	ReleaseInput   helm.Release
	Options        helm.Options
}

UpgradeReleaseRequest is a request struct for UpgradeRelease endpoint.

type UpgradeReleaseResponse

type UpgradeReleaseResponse struct {
	Release helm.Release
	Err     error
}

UpgradeReleaseResponse is a response struct for UpgradeRelease endpoint.

func (UpgradeReleaseResponse) Failed

func (r UpgradeReleaseResponse) Failed() error

Jump to

Keyboard shortcuts

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