mothership

package
v0.0.0-...-687e40a Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mothership provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.8.2 DO NOT EDIT.

Package mothership provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.8.2 DO NOT EDIT.

Index

Constants

View Source
const (
	EndpointReconcile string = "reconcile"
)

Variables

This section is empty.

Functions

func NewDeleteClustersRuntimeIDRequest

func NewDeleteClustersRuntimeIDRequest(server string, runtimeID string) (*http.Request, error)

NewDeleteClustersRuntimeIDRequest generates requests for DeleteClustersRuntimeID

func NewGetClustersRuntimeIDConfigConfigVersionStatusRequest

func NewGetClustersRuntimeIDConfigConfigVersionStatusRequest(server string, runtimeID string, configVersion string) (*http.Request, error)

NewGetClustersRuntimeIDConfigConfigVersionStatusRequest generates requests for GetClustersRuntimeIDConfigConfigVersionStatus

func NewGetClustersRuntimeIDStatusChangesRequest

func NewGetClustersRuntimeIDStatusChangesRequest(server string, runtimeID string) (*http.Request, error)

NewGetClustersRuntimeIDStatusChangesRequest generates requests for GetClustersRuntimeIDStatusChanges

func NewGetClustersRuntimeIDStatusRequest

func NewGetClustersRuntimeIDStatusRequest(server string, runtimeID string) (*http.Request, error)

NewGetClustersRuntimeIDStatusRequest generates requests for GetClustersRuntimeIDStatus

func NewGetReconciliationsRequest

func NewGetReconciliationsRequest(server string, params *GetReconciliationsParams) (*http.Request, error)

NewGetReconciliationsRequest generates requests for GetReconciliations

func NewGetReconciliationsSchedulingIDInfoRequest

func NewGetReconciliationsSchedulingIDInfoRequest(server string, schedulingID string) (*http.Request, error)

NewGetReconciliationsSchedulingIDInfoRequest generates requests for GetReconciliationsSchedulingIDInfo

func NewPostClustersRequest

func NewPostClustersRequest(server string, body PostClustersJSONRequestBody) (*http.Request, error)

NewPostClustersRequest calls the generic PostClusters builder with application/json body

func NewPostClustersRequestWithBody

func NewPostClustersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostClustersRequestWithBody generates requests for PostClusters with any type of body

func NewPutClustersRequest

func NewPutClustersRequest(server string, body PutClustersJSONRequestBody) (*http.Request, error)

NewPutClustersRequest calls the generic PutClusters builder with application/json body

func NewPutClustersRequestWithBody

func NewPutClustersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPutClustersRequestWithBody generates requests for PutClusters with any type of body

func NewPutClustersRuntimeIDStatusRequest

func NewPutClustersRuntimeIDStatusRequest(server string, runtimeID string, body PutClustersRuntimeIDStatusJSONRequestBody) (*http.Request, error)

NewPutClustersRuntimeIDStatusRequest calls the generic PutClustersRuntimeIDStatus builder with application/json body

func NewPutClustersRuntimeIDStatusRequestWithBody

func NewPutClustersRuntimeIDStatusRequestWithBody(server string, runtimeID string, contentType string, body io.Reader) (*http.Request, error)

NewPutClustersRuntimeIDStatusRequestWithBody generates requests for PutClustersRuntimeIDStatus with any type of body

Types

type BadRequest

type BadRequest HTTPErrorResponse

BadRequest defines model for BadRequest.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) DeleteClustersRuntimeID

func (c *Client) DeleteClustersRuntimeID(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClustersRuntimeIDConfigConfigVersionStatus

func (c *Client) GetClustersRuntimeIDConfigConfigVersionStatus(ctx context.Context, runtimeID string, configVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClustersRuntimeIDStatus

func (c *Client) GetClustersRuntimeIDStatus(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetClustersRuntimeIDStatusChanges

func (c *Client) GetClustersRuntimeIDStatusChanges(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReconciliations

func (c *Client) GetReconciliations(ctx context.Context, params *GetReconciliationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReconciliationsSchedulingIDInfo

func (c *Client) GetReconciliationsSchedulingIDInfo(ctx context.Context, schedulingID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostClusters

func (c *Client) PostClusters(ctx context.Context, body PostClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostClustersWithBody

func (c *Client) PostClustersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutClusters

func (c *Client) PutClusters(ctx context.Context, body PutClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutClustersRuntimeIDStatus

func (c *Client) PutClustersRuntimeIDStatus(ctx context.Context, runtimeID string, body PutClustersRuntimeIDStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutClustersRuntimeIDStatusWithBody

func (c *Client) PutClustersRuntimeIDStatusWithBody(ctx context.Context, runtimeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutClustersWithBody

func (c *Client) PutClustersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// PostClusters request with any body
	PostClustersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostClusters(ctx context.Context, body PostClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutClusters request with any body
	PutClustersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutClusters(ctx context.Context, body PutClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteClustersRuntimeID request
	DeleteClustersRuntimeID(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClustersRuntimeIDConfigConfigVersionStatus request
	GetClustersRuntimeIDConfigConfigVersionStatus(ctx context.Context, runtimeID string, configVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClustersRuntimeIDStatus request
	GetClustersRuntimeIDStatus(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutClustersRuntimeIDStatus request with any body
	PutClustersRuntimeIDStatusWithBody(ctx context.Context, runtimeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutClustersRuntimeIDStatus(ctx context.Context, runtimeID string, body PutClustersRuntimeIDStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetClustersRuntimeIDStatusChanges request
	GetClustersRuntimeIDStatusChanges(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReconciliations request
	GetReconciliations(ctx context.Context, params *GetReconciliationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReconciliationsSchedulingIDInfo request
	GetReconciliationsSchedulingIDInfo(ctx context.Context, schedulingID string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteClustersRuntimeIDWithResponse

func (c *ClientWithResponses) DeleteClustersRuntimeIDWithResponse(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*DeleteClustersRuntimeIDResponse, error)

DeleteClustersRuntimeIDWithResponse request returning *DeleteClustersRuntimeIDResponse

func (*ClientWithResponses) GetClustersRuntimeIDConfigConfigVersionStatusWithResponse

func (c *ClientWithResponses) GetClustersRuntimeIDConfigConfigVersionStatusWithResponse(ctx context.Context, runtimeID string, configVersion string, reqEditors ...RequestEditorFn) (*GetClustersRuntimeIDConfigConfigVersionStatusResponse, error)

GetClustersRuntimeIDConfigConfigVersionStatusWithResponse request returning *GetClustersRuntimeIDConfigConfigVersionStatusResponse

func (*ClientWithResponses) GetClustersRuntimeIDStatusChangesWithResponse

func (c *ClientWithResponses) GetClustersRuntimeIDStatusChangesWithResponse(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*GetClustersRuntimeIDStatusChangesResponse, error)

GetClustersRuntimeIDStatusChangesWithResponse request returning *GetClustersRuntimeIDStatusChangesResponse

func (*ClientWithResponses) GetClustersRuntimeIDStatusWithResponse

func (c *ClientWithResponses) GetClustersRuntimeIDStatusWithResponse(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*GetClustersRuntimeIDStatusResponse, error)

GetClustersRuntimeIDStatusWithResponse request returning *GetClustersRuntimeIDStatusResponse

func (*ClientWithResponses) GetReconciliationsSchedulingIDInfoWithResponse

func (c *ClientWithResponses) GetReconciliationsSchedulingIDInfoWithResponse(ctx context.Context, schedulingID string, reqEditors ...RequestEditorFn) (*GetReconciliationsSchedulingIDInfoResponse, error)

GetReconciliationsSchedulingIDInfoWithResponse request returning *GetReconciliationsSchedulingIDInfoResponse

func (*ClientWithResponses) GetReconciliationsWithResponse

func (c *ClientWithResponses) GetReconciliationsWithResponse(ctx context.Context, params *GetReconciliationsParams, reqEditors ...RequestEditorFn) (*GetReconciliationsResponse, error)

GetReconciliationsWithResponse request returning *GetReconciliationsResponse

func (*ClientWithResponses) PostClustersWithBodyWithResponse

func (c *ClientWithResponses) PostClustersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClustersResponse, error)

PostClustersWithBodyWithResponse request with arbitrary body returning *PostClustersResponse

func (*ClientWithResponses) PostClustersWithResponse

func (c *ClientWithResponses) PostClustersWithResponse(ctx context.Context, body PostClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClustersResponse, error)

func (*ClientWithResponses) PutClustersRuntimeIDStatusWithBodyWithResponse

func (c *ClientWithResponses) PutClustersRuntimeIDStatusWithBodyWithResponse(ctx context.Context, runtimeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutClustersRuntimeIDStatusResponse, error)

PutClustersRuntimeIDStatusWithBodyWithResponse request with arbitrary body returning *PutClustersRuntimeIDStatusResponse

func (*ClientWithResponses) PutClustersRuntimeIDStatusWithResponse

func (c *ClientWithResponses) PutClustersRuntimeIDStatusWithResponse(ctx context.Context, runtimeID string, body PutClustersRuntimeIDStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutClustersRuntimeIDStatusResponse, error)

func (*ClientWithResponses) PutClustersWithBodyWithResponse

func (c *ClientWithResponses) PutClustersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutClustersResponse, error)

PutClustersWithBodyWithResponse request with arbitrary body returning *PutClustersResponse

func (*ClientWithResponses) PutClustersWithResponse

func (c *ClientWithResponses) PutClustersWithResponse(ctx context.Context, body PutClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PutClustersResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// PostClusters request with any body
	PostClustersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostClustersResponse, error)

	PostClustersWithResponse(ctx context.Context, body PostClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostClustersResponse, error)

	// PutClusters request with any body
	PutClustersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutClustersResponse, error)

	PutClustersWithResponse(ctx context.Context, body PutClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*PutClustersResponse, error)

	// DeleteClustersRuntimeID request
	DeleteClustersRuntimeIDWithResponse(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*DeleteClustersRuntimeIDResponse, error)

	// GetClustersRuntimeIDConfigConfigVersionStatus request
	GetClustersRuntimeIDConfigConfigVersionStatusWithResponse(ctx context.Context, runtimeID string, configVersion string, reqEditors ...RequestEditorFn) (*GetClustersRuntimeIDConfigConfigVersionStatusResponse, error)

	// GetClustersRuntimeIDStatus request
	GetClustersRuntimeIDStatusWithResponse(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*GetClustersRuntimeIDStatusResponse, error)

	// PutClustersRuntimeIDStatus request with any body
	PutClustersRuntimeIDStatusWithBodyWithResponse(ctx context.Context, runtimeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutClustersRuntimeIDStatusResponse, error)

	PutClustersRuntimeIDStatusWithResponse(ctx context.Context, runtimeID string, body PutClustersRuntimeIDStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutClustersRuntimeIDStatusResponse, error)

	// GetClustersRuntimeIDStatusChanges request
	GetClustersRuntimeIDStatusChangesWithResponse(ctx context.Context, runtimeID string, reqEditors ...RequestEditorFn) (*GetClustersRuntimeIDStatusChangesResponse, error)

	// GetReconciliations request
	GetReconciliationsWithResponse(ctx context.Context, params *GetReconciliationsParams, reqEditors ...RequestEditorFn) (*GetReconciliationsResponse, error)

	// GetReconciliationsSchedulingIDInfo request
	GetReconciliationsSchedulingIDInfoWithResponse(ctx context.Context, schedulingID string, reqEditors ...RequestEditorFn) (*GetReconciliationsSchedulingIDInfoResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Cluster

type Cluster struct {
	// valid kubeconfig to cluster
	Kubeconfig   string       `json:"kubeconfig"`
	KymaConfig   KymaConfig   `json:"kymaConfig"`
	Metadata     Metadata     `json:"metadata"`
	RuntimeID    string       `json:"runtimeID"`
	RuntimeInput RuntimeInput `json:"runtimeInput"`
}

Cluster defines model for cluster.

type ClusterNotFound

type ClusterNotFound HTTPErrorResponse

ClusterNotFound defines model for ClusterNotFound.

type Component

type Component struct {
	URL           string          `json:"URL"`
	Component     string          `json:"component"`
	Configuration []Configuration `json:"configuration"`
	Namespace     string          `json:"namespace"`
	Version       string          `json:"version"`
}

Component defines model for component.

type Configuration

type Configuration struct {
	Key    string      `json:"key"`
	Secret bool        `json:"secret"`
	Value  interface{} `json:"value"`
}

Configuration defines model for configuration.

type DeleteClustersRuntimeIDResponse

type DeleteClustersRuntimeIDResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPClusterResponse
	JSON400      *HTTPErrorResponse
	JSON404      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParseDeleteClustersRuntimeIDResponse

func ParseDeleteClustersRuntimeIDResponse(rsp *http.Response) (*DeleteClustersRuntimeIDResponse, error)

ParseDeleteClustersRuntimeIDResponse parses an HTTP response from a DeleteClustersRuntimeIDWithResponse call

func (DeleteClustersRuntimeIDResponse) Status

Status returns HTTPResponse.Status

func (DeleteClustersRuntimeIDResponse) StatusCode

func (r DeleteClustersRuntimeIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClustersRuntimeIDConfigConfigVersionStatusResponse

type GetClustersRuntimeIDConfigConfigVersionStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPClusterResponse
	JSON400      *HTTPErrorResponse
	JSON404      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParseGetClustersRuntimeIDConfigConfigVersionStatusResponse

func ParseGetClustersRuntimeIDConfigConfigVersionStatusResponse(rsp *http.Response) (*GetClustersRuntimeIDConfigConfigVersionStatusResponse, error)

ParseGetClustersRuntimeIDConfigConfigVersionStatusResponse parses an HTTP response from a GetClustersRuntimeIDConfigConfigVersionStatusWithResponse call

func (GetClustersRuntimeIDConfigConfigVersionStatusResponse) Status

Status returns HTTPResponse.Status

func (GetClustersRuntimeIDConfigConfigVersionStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetClustersRuntimeIDStatusChangesResponse

type GetClustersRuntimeIDStatusChangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPClusterStatusResponse
	JSON400      *HTTPErrorResponse
	JSON404      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParseGetClustersRuntimeIDStatusChangesResponse

func ParseGetClustersRuntimeIDStatusChangesResponse(rsp *http.Response) (*GetClustersRuntimeIDStatusChangesResponse, error)

ParseGetClustersRuntimeIDStatusChangesResponse parses an HTTP response from a GetClustersRuntimeIDStatusChangesWithResponse call

func (GetClustersRuntimeIDStatusChangesResponse) Status

Status returns HTTPResponse.Status

func (GetClustersRuntimeIDStatusChangesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetClustersRuntimeIDStatusResponse

type GetClustersRuntimeIDStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPClusterResponse
	JSON400      *HTTPErrorResponse
	JSON404      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParseGetClustersRuntimeIDStatusResponse

func ParseGetClustersRuntimeIDStatusResponse(rsp *http.Response) (*GetClustersRuntimeIDStatusResponse, error)

ParseGetClustersRuntimeIDStatusResponse parses an HTTP response from a GetClustersRuntimeIDStatusWithResponse call

func (GetClustersRuntimeIDStatusResponse) Status

Status returns HTTPResponse.Status

func (GetClustersRuntimeIDStatusResponse) StatusCode

func (r GetClustersRuntimeIDStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReconciliationsParams

type GetReconciliationsParams struct {
	RuntimeID *[]string `json:"runtimeID,omitempty"`
	Status    *[]Status `json:"status,omitempty"`
}

GetReconciliationsParams defines parameters for GetReconciliations.

type GetReconciliationsResponse

type GetReconciliationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPReconcilerStatus
	JSON400      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParseGetReconciliationsResponse

func ParseGetReconciliationsResponse(rsp *http.Response) (*GetReconciliationsResponse, error)

ParseGetReconciliationsResponse parses an HTTP response from a GetReconciliationsWithResponse call

func (GetReconciliationsResponse) Status

Status returns HTTPResponse.Status

func (GetReconciliationsResponse) StatusCode

func (r GetReconciliationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReconciliationsSchedulingIDInfoResponse

type GetReconciliationsSchedulingIDInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPReconciliationOperations
	JSON400      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParseGetReconciliationsSchedulingIDInfoResponse

func ParseGetReconciliationsSchedulingIDInfoResponse(rsp *http.Response) (*GetReconciliationsSchedulingIDInfoResponse, error)

ParseGetReconciliationsSchedulingIDInfoResponse parses an HTTP response from a GetReconciliationsSchedulingIDInfoWithResponse call

func (GetReconciliationsSchedulingIDInfoResponse) Status

Status returns HTTPResponse.Status

func (GetReconciliationsSchedulingIDInfoResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type HTTPClusterResponse

type HTTPClusterResponse struct {
	Cluster              string `json:"cluster"`
	ClusterVersion       int64  `json:"clusterVersion"`
	ConfigurationVersion int64  `json:"configurationVersion"`
	Status               Status `json:"status"`
	StatusURL            string `json:"statusURL"`
}

HTTPClusterResponse defines model for HTTPClusterResponse.

type HTTPClusterStatusResponse

type HTTPClusterStatusResponse struct {
	StatusChanges []StatusChange `json:"statusChanges"`
}

HTTPClusterStatusResponse defines model for HTTPClusterStatusResponse.

type HTTPErrorResponse

type HTTPErrorResponse struct {
	Error string `json:"error"`
}

HTTPErrorResponse defines model for HTTPErrorResponse.

type HTTPReconcilerStatus

type HTTPReconcilerStatus []Reconciliation

HTTPReconcilerStatus defines model for HTTPReconcilerStatus.

type HTTPReconciliationOperations

type HTTPReconciliationOperations struct {
	Cluster    *Cluster     `json:"cluster,omitempty"`
	Operations *[]Operation `json:"operations,omitempty"`
}

HTTPReconciliationOperations defines model for HTTPReconciliationOperations.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalError

type InternalError HTTPErrorResponse

InternalError defines model for InternalError.

type KymaConfig

type KymaConfig struct {
	Administrators []string    `json:"administrators"`
	Components     []Component `json:"components"`
	Profile        string      `json:"profile"`
	Version        string      `json:"version"`
}

KymaConfig defines model for kymaConfig.

type Metadata

type Metadata struct {
	GlobalAccountID string `json:"globalAccountID"`
	InstanceID      string `json:"instanceID"`
	ServiceID       string `json:"serviceID"`
	ServicePlanID   string `json:"servicePlanID"`
	ShootName       string `json:"shootName"`
	SubAccountID    string `json:"subAccountID"`
}

Metadata defines model for metadata.

type Ok

Ok defines model for Ok.

type Operation

type Operation struct {
	ClusterMetadata *Cluster  `json:"clusterMetadata,omitempty"`
	Component       string    `json:"component"`
	CorrelationID   string    `json:"correlationID"`
	Created         time.Time `json:"created"`
	Priority        int64     `json:"priority"`
	Reason          string    `json:"reason"`
	SchedulingID    string    `json:"schedulingID"`
	State           string    `json:"state"`
	Updated         time.Time `json:"updated"`
}

Operation defines model for operation.

type PostClustersJSONBody

type PostClustersJSONBody Cluster

PostClustersJSONBody defines parameters for PostClusters.

type PostClustersJSONRequestBody

type PostClustersJSONRequestBody PostClustersJSONBody

PostClustersJSONRequestBody defines body for PostClusters for application/json ContentType.

type PostClustersResponse

type PostClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPClusterResponse
	JSON400      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParsePostClustersResponse

func ParsePostClustersResponse(rsp *http.Response) (*PostClustersResponse, error)

ParsePostClustersResponse parses an HTTP response from a PostClustersWithResponse call

func (PostClustersResponse) Status

func (r PostClustersResponse) Status() string

Status returns HTTPResponse.Status

func (PostClustersResponse) StatusCode

func (r PostClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutClustersJSONBody

type PutClustersJSONBody Cluster

PutClustersJSONBody defines parameters for PutClusters.

type PutClustersJSONRequestBody

type PutClustersJSONRequestBody PutClustersJSONBody

PutClustersJSONRequestBody defines body for PutClusters for application/json ContentType.

type PutClustersResponse

type PutClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HTTPClusterResponse
	JSON400      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParsePutClustersResponse

func ParsePutClustersResponse(rsp *http.Response) (*PutClustersResponse, error)

ParsePutClustersResponse parses an HTTP response from a PutClustersWithResponse call

func (PutClustersResponse) Status

func (r PutClustersResponse) Status() string

Status returns HTTPResponse.Status

func (PutClustersResponse) StatusCode

func (r PutClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutClustersRuntimeIDStatusJSONBody

type PutClustersRuntimeIDStatusJSONBody StatusUpdate

PutClustersRuntimeIDStatusJSONBody defines parameters for PutClustersRuntimeIDStatus.

type PutClustersRuntimeIDStatusJSONRequestBody

type PutClustersRuntimeIDStatusJSONRequestBody PutClustersRuntimeIDStatusJSONBody

PutClustersRuntimeIDStatusJSONRequestBody defines body for PutClustersRuntimeIDStatus for application/json ContentType.

type PutClustersRuntimeIDStatusResponse

type PutClustersRuntimeIDStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *HTTPClusterResponse
	JSON400      *HTTPErrorResponse
	JSON404      *HTTPErrorResponse
	JSON500      *HTTPErrorResponse
}

func ParsePutClustersRuntimeIDStatusResponse

func ParsePutClustersRuntimeIDStatusResponse(rsp *http.Response) (*PutClustersRuntimeIDStatusResponse, error)

ParsePutClustersRuntimeIDStatusResponse parses an HTTP response from a PutClustersRuntimeIDStatusWithResponse call

func (PutClustersRuntimeIDStatusResponse) Status

Status returns HTTPResponse.Status

func (PutClustersRuntimeIDStatusResponse) StatusCode

func (r PutClustersRuntimeIDStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReconcilationOperationsOKResponse

type ReconcilationOperationsOKResponse HTTPReconciliationOperations

ReconcilationOperationsOKResponse defines model for ReconcilationOperationsOKResponse.

type ReconcilationsOKResponse

type ReconcilationsOKResponse HTTPReconcilerStatus

ReconcilationsOKResponse defines model for ReconcilationsOKResponse.

type Reconciliation

type Reconciliation struct {
	Created      time.Time `json:"created"`
	Lock         string    `json:"lock"`
	RuntimeID    string    `json:"runtimeID"`
	SchedulingID string    `json:"schedulingID"`
	Status       Status    `json:"status"`
	Updated      time.Time `json:"updated"`
}

Reconciliation defines model for reconciliation.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RuntimeInput

type RuntimeInput struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

RuntimeInput defines model for runtimeInput.

type Status

type Status string

Status defines model for status.

const (
	StatusError Status = "error"

	StatusReady Status = "ready"

	StatusReconcileDisabled Status = "reconcile_disabled"

	StatusReconcileFailed Status = "reconcile_failed"

	StatusReconcilePending Status = "reconcile_pending"

	StatusReconciling Status = "reconciling"
)

Defines values for Status.

type StatusChange

type StatusChange struct {
	Duration int64     `json:"duration"`
	Started  time.Time `json:"started"`
	Status   Status    `json:"status"`
}

StatusChange defines model for statusChange.

type StatusUpdate

type StatusUpdate struct {
	Status Status `json:"status"`
}

StatusUpdate defines model for statusUpdate.

type URLProvider

type URLProvider interface {
	Provide(endpoint string, queryParams map[string]string) url.URL
}

Jump to

Keyboard shortcuts

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