keb

package
v0.0.0-...-54d0854 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package keb 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest

type BadRequest HTTPErrorResponse

BadRequest defines model for BadRequest.

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 ClusterState

type ClusterState struct {
	Contract  *int64        `json:"contract,omitempty"`
	Created   *time.Time    `json:"created,omitempty"`
	Metadata  *Metadata     `json:"metadata,omitempty"`
	Runtime   *RuntimeInput `json:"runtime,omitempty"`
	RuntimeID *string       `json:"runtimeID,omitempty"`
	Version   *int64        `json:"version,omitempty"`
}

ClusterState defines model for clusterState.

type ClusterStateConfiguration

type ClusterStateConfiguration struct {
	Administrators *[]string    `json:"administrators,omitempty"`
	ClusterVersion *int64       `json:"clusterVersion,omitempty"`
	Components     *[]Component `json:"components,omitempty"`
	Contract       *int64       `json:"contract,omitempty"`
	Created        *time.Time   `json:"created,omitempty"`
	Deleted        *bool        `json:"deleted,omitempty"`
	KymaProfile    *string      `json:"kymaProfile,omitempty"`
	KymaVersion    *string      `json:"kymaVersion,omitempty"`
	RuntimeID      *string      `json:"runtimeID,omitempty"`
	Version        *int64       `json:"version,omitempty"`
}

ClusterStateConfiguration defines model for clusterStateConfiguration.

type ClusterStateStatus

type ClusterStateStatus struct {
	ClusterVersion *int64     `json:"clusterVersion,omitempty"`
	ConfigVersion  *int64     `json:"configVersion,omitempty"`
	Created        *time.Time `json:"created,omitempty"`
	Deleted        *bool      `json:"deleted,omitempty"`
	Id             *int64     `json:"id,omitempty"`
	RuntimeID      *string    `json:"runtimeID,omitempty"`
	Status         *Status    `json:"status,omitempty"`
}

ClusterStateStatus defines model for clusterStateStatus.

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.

func (Component) ConfigurationAsMap

func (c Component) ConfigurationAsMap() map[string]interface{}

ConfigurationAsMap flattens the list of configuration entities to a map. Component struct is generated from OpenAPI.

type Configuration

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

Configuration defines model for configuration.

type ConfigurationOkResponse

type ConfigurationOkResponse HTTPClusterConfig

ConfigurationOkResponse defines model for configurationOkResponse.

type Failure

type Failure struct {
	Component string `json:"component"`
	Reason    string `json:"reason"`
}

Failure defines model for failure.

type GetClustersStateParams

type GetClustersStateParams struct {
	RuntimeID     *string `json:"runtimeID,omitempty"`
	SchedulingID  *string `json:"schedulingID,omitempty"`
	CorrelationID *string `json:"correlationID,omitempty"`
}

GetClustersStateParams defines parameters for GetClustersState.

type GetReconciliationsParams

type GetReconciliationsParams struct {
	RuntimeID *[]string  `json:"runtimeID,omitempty"`
	Before    *time.Time `json:"before,omitempty"`
	After     *time.Time `json:"after,omitempty"`
	Last      *int       `json:"last,omitempty"`
	Status    *[]Status  `json:"status,omitempty"`
}

GetReconciliationsParams defines parameters for GetReconciliations.

type HTTPClusterConfig

type HTTPClusterConfig KymaConfig

HTTPClusterConfig defines model for HTTPClusterConfig.

type HTTPClusterResponse

type HTTPClusterResponse struct {
	Cluster              string     `json:"cluster"`
	ClusterVersion       int64      `json:"clusterVersion"`
	ConfigurationVersion int64      `json:"configurationVersion"`
	Failures             *[]Failure `json:"failures,omitempty"`
	Status               Status     `json:"status"`
	StatusURL            string     `json:"statusURL"`
}

HTTPClusterResponse defines model for HTTPClusterResponse.

type HTTPClusterStateResponse

type HTTPClusterStateResponse struct {
	Cluster       ClusterState              `json:"cluster"`
	Configuration ClusterStateConfiguration `json:"configuration"`
	Status        ClusterStateStatus        `json:"status"`
}

HTTPClusterStateResponse defines model for HTTPClusterStateResponse.

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 HTTPReconciliationInfo

type HTTPReconciliationInfo struct {
	ConfigVersion int64       `json:"configVersion"`
	Created       time.Time   `json:"created"`
	Finished      bool        `json:"finished"`
	Operations    []Operation `json:"operations"`
	RuntimeID     string      `json:"runtimeID"`
	SchedulingID  string      `json:"schedulingID"`
	Status        Status      `json:"status"`
	Updated       time.Time   `json:"updated"`
}

HTTPReconciliationInfo defines model for HTTPReconciliationInfo.

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"`
	Region          string `json:"region"`
	ServiceID       string `json:"serviceID"`
	ServicePlanID   string `json:"servicePlanID"`
	ServicePlanName string `json:"servicePlanName"`
	ShootName       string `json:"shootName"`
	SubAccountID    string `json:"subAccountID"`
}

Metadata defines model for metadata.

type ModelFactory

type ModelFactory struct {
	// contains filtered or unexported fields
}

func NewModelFactory

func NewModelFactory(contractV int64) *ModelFactory

func (*ModelFactory) Administrators

func (mf *ModelFactory) Administrators(data io.Reader) ([]string, error)

func (*ModelFactory) Cluster

func (mf *ModelFactory) Cluster(data io.Reader) (*Cluster, error)

func (*ModelFactory) Components

func (mf *ModelFactory) Components(data io.Reader) ([]*Component, error)

func (*ModelFactory) Metadata

func (mf *ModelFactory) Metadata(data io.Reader) (*Metadata, error)

func (*ModelFactory) Runtime

func (mf *ModelFactory) Runtime(data io.Reader) (*RuntimeInput, error)

func (*ModelFactory) Status

func (mf *ModelFactory) Status(data io.Reader) (*StatusUpdate, error)

type NotFoundResponse

type NotFoundResponse HTTPErrorResponse

NotFoundResponse defines model for NotFoundResponse.

type Ok

Ok defines model for Ok.

type Operation

type Operation struct {
	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"`
	Type          string    `json:"type"`
	Updated       time.Time `json:"updated"`
}

Operation defines model for operation.

type OperationStop

type OperationStop struct {
	Reason string `json:"reason"`
}

OperationStop defines model for operationStop.

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 PostOperationsSchedulingIDCorrelationIDStopJSONBody

type PostOperationsSchedulingIDCorrelationIDStopJSONBody OperationStop

PostOperationsSchedulingIDCorrelationIDStopJSONBody defines parameters for PostOperationsSchedulingIDCorrelationIDStop.

type PostOperationsSchedulingIDCorrelationIDStopJSONRequestBody

type PostOperationsSchedulingIDCorrelationIDStopJSONRequestBody PostOperationsSchedulingIDCorrelationIDStopJSONBody

PostOperationsSchedulingIDCorrelationIDStopJSONRequestBody defines body for PostOperationsSchedulingIDCorrelationIDStop for application/json ContentType.

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 PutClustersRuntimeIDStatusJSONBody

type PutClustersRuntimeIDStatusJSONBody StatusUpdate

PutClustersRuntimeIDStatusJSONBody defines parameters for PutClustersRuntimeIDStatus.

type PutClustersRuntimeIDStatusJSONRequestBody

type PutClustersRuntimeIDStatusJSONRequestBody PutClustersRuntimeIDStatusJSONBody

PutClustersRuntimeIDStatusJSONRequestBody defines body for PutClustersRuntimeIDStatus for application/json ContentType.

type ReconcilationsOKResponse

type ReconcilationsOKResponse HTTPReconcilerStatus

ReconcilationsOKResponse defines model for ReconcilationsOKResponse.

type ReconcilerStatus

type ReconcilerStatus struct {
	Cluster  string    `json:"cluster"`
	Created  time.Time `json:"created"`
	Metadata Metadata  `json:"metadata"`
	Status   string    `json:"status"`
}

ReconcilerStatus defines model for reconcilerStatus.

type Reconciliation

type Reconciliation struct {
	Created      time.Time `json:"created"`
	Finished     bool      `json:"finished"`
	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 ReconciliationInfoOKResponse

type ReconciliationInfoOKResponse HTTPReconciliationInfo

ReconciliationInfoOKResponse defines model for ReconciliationInfoOKResponse.

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 (
	StatusDeleteError Status = "delete_error"

	StatusDeleteErrorRetryable Status = "delete_error_retryable"

	StatusDeletePending Status = "delete_pending"

	StatusDeleted Status = "deleted"

	StatusDeleting Status = "deleting"

	StatusError Status = "error"

	StatusReady Status = "ready"

	StatusReconcileDisabled Status = "reconcile_disabled"

	StatusReconcileErrorRetryable Status = "reconcile_error_retryable"

	StatusReconcilePending Status = "reconcile_pending"

	StatusReconciling Status = "reconciling"
)

Defines values for Status.

func ToStatus

func ToStatus(in string) (Status, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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