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 ¶
- type BadRequest
- type Cluster
- type ClusterState
- type ClusterStateConfiguration
- type ClusterStateStatus
- type Component
- type Configuration
- type ConfigurationOkResponse
- type Failure
- type GetClustersStateParams
- type GetReconciliationsParams
- type HTTPClusterConfig
- type HTTPClusterResponse
- type HTTPClusterStateResponse
- type HTTPClusterStatusResponse
- type HTTPErrorResponse
- type HTTPReconcilerStatus
- type HTTPReconciliationInfo
- type InternalError
- type KymaConfig
- type Metadata
- type ModelFactory
- func (mf *ModelFactory) Administrators(data io.Reader) ([]string, error)
- func (mf *ModelFactory) Cluster(data io.Reader) (*Cluster, error)
- func (mf *ModelFactory) Components(data io.Reader) ([]*Component, error)
- func (mf *ModelFactory) Metadata(data io.Reader) (*Metadata, error)
- func (mf *ModelFactory) Runtime(data io.Reader) (*RuntimeInput, error)
- func (mf *ModelFactory) Status(data io.Reader) (*StatusUpdate, error)
- type NotFoundResponse
- type Ok
- type Operation
- type OperationStop
- type PostClustersJSONBody
- type PostClustersJSONRequestBody
- type PostOperationsSchedulingIDCorrelationIDStopJSONBody
- type PostOperationsSchedulingIDCorrelationIDStopJSONRequestBody
- type PutClustersJSONBody
- type PutClustersJSONRequestBody
- type PutClustersRuntimeIDStatusJSONBody
- type PutClustersRuntimeIDStatusJSONRequestBody
- type ReconcilationsOKResponse
- type ReconcilerStatus
- type Reconciliation
- type ReconciliationInfoOKResponse
- type RuntimeInput
- type Status
- type StatusChange
- type StatusUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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 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) Components ¶
func (mf *ModelFactory) Components(data io.Reader) ([]*Component, 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 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 ¶
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.
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.