reconciler

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

Documentation

Overview

Package reconciler 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 CallbackMessage

type CallbackMessage struct {
	Error              string  `json:"error"`
	Manifest           *string `json:"manifest,omitempty"`
	ProcessingDuration int     `json:"processingDuration"`
	RetryID            string  `json:"retryID"`
	Status             Status  `json:"status"`
}

CallbackMessage defines model for callbackMessage.

func (*CallbackMessage) String

func (cb *CallbackMessage) String() string

Stringer implementation for CallbackMessage CallbackMessage struct is generated by Swagger code-gen

type ComponentConfiguration

type ComponentConfiguration struct {
	MaxRetries int  `json:"maxRetries"`
	Debug      bool `json:"debug"`
}

type Configuration

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

type HTTPErrorResponse

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

HTTPErrorResponse is the model used for general error responses

type HTTPOccupancyRequest

type HTTPOccupancyRequest struct {
	Component      string `json:"component"`
	RunningWorkers int    `json:"runningWorkers"`
	PoolSize       int    `json:"poolSize"`
}

type HTTPReconciliationResponse

type HTTPReconciliationResponse struct {
}

type PostOperationsSchedulingIDCallbackCorrelationIDJSONBody

type PostOperationsSchedulingIDCallbackCorrelationIDJSONBody CallbackMessage

PostOperationsSchedulingIDCallbackCorrelationIDJSONBody defines parameters for PostOperationsSchedulingIDCallbackCorrelationID.

type PostOperationsSchedulingIDCallbackCorrelationIDJSONRequestBody

type PostOperationsSchedulingIDCallbackCorrelationIDJSONRequestBody PostOperationsSchedulingIDCallbackCorrelationIDJSONBody

PostOperationsSchedulingIDCallbackCorrelationIDJSONRequestBody defines body for PostOperationsSchedulingIDCallbackCorrelationID for application/json ContentType.

type Repository

type Repository struct {
	URL string `json:"url"`
}

func (*Repository) String

func (r *Repository) String() string

type Status

type Status string

Status defines model for status.

const (
	StatusError Status = "error"

	StatusFailed Status = "failed"

	StatusNotstarted Status = "notstarted"

	StatusRunning Status = "running"

	StatusSuccess Status = "success"
)

Defines values for Status.

func NewStatus

func NewStatus(status string) (Status, error)

type Task

type Task struct {
	ComponentsReady        []string               `json:"componentsReady"`
	Component              string                 `json:"component"`
	Namespace              string                 `json:"namespace"`
	Version                string                 `json:"version"`
	URL                    string                 `json:"url"`
	Profile                string                 `json:"profile"`
	Configuration          map[string]interface{} `json:"configuration"`
	Kubeconfig             string                 `json:"kubeconfig"`
	Metadata               keb.Metadata           `json:"metadata"`
	CallbackURL            string                 `json:"callbackURL"` //CallbackURL is mandatory when component-reconciler runs in separate process
	CorrelationID          string                 `json:"correlationID"`
	Repository             *Repository            `json:"repository"`
	Type                   model.OperationType    `json:"type"` // Supported task types are: reconcile, delete
	ComponentConfiguration ComponentConfiguration `json:"componentConfiguration"`

	//These fields are not part of HTTP request coming from reconciler-controller:
	CallbackFunc func(msg *CallbackMessage) error `json:"-"` //CallbackFunc is mandatory when component-reconciler runs embedded in another process
}

Task the reconciler has to complete when called

func (*Task) String

func (r *Task) String() string

func (*Task) Validate

func (r *Task) Validate() error

Jump to

Keyboard shortcuts

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