v1

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStatusResponse added in v0.3.0

type AccountStatusResponse struct {
	HTTPStatusCode int           `json:"http_code,omitempty"` // http response status code
	Status         models.Status `json:"status,omitempty"`
}

func (*AccountStatusResponse) Render added in v0.3.0

type Error

type Error struct {
	Err            error `json:"-"`                   // low-level runtime error
	HTTPStatusCode int   `json:"http_code,omitempty"` // http response status code

	Message        string   `json:"message"`                   // user-facing
	AppCode        int64    `json:"code,omitempty"`            // application-specific error code
	ErrorText      string   `json:"error,omitempty"`           // application-level error message, for debugging
	ErrorMultiline []string `json:"error_multiline,omitempty"` // application-level error message, for debugging
}

func (*Error) Render

func (p *Error) Render(w http.ResponseWriter, r *http.Request) error

type HealthCheckResult

type HealthCheckResult struct {
	HTTPStatusCode int    `json:"http_code,omitempty"` // http response status code
	Message        string `json:"message"`
}

type LifecycleRequestResponse added in v0.3.0

type LifecycleRequestResponse struct {
	HTTPStatusCode int    `json:"http_code,omitempty"` // http response status code
	Message        string `json:"message"`
	RequestID      string `json:"request_id,omitempty"`
	Status         string `json:"status,omitempty"`
}

func (*LifecycleRequestResponse) Render added in v0.3.0

type PlacementRequest

type PlacementRequest struct {
	ServiceUuid string             `json:"service_uuid"`
	Provider    string             `json:"provider,omitempty"`
	Reservation string             `json:"reservation,omitempty"`
	Resources   []ResourceRequest  `json:"resources"`
	Annotations models.Annotations `json:"annotations,omitempty"`
}

func (*PlacementRequest) Bind

func (p *PlacementRequest) Bind(r *http.Request) error

type PlacementResponse

type PlacementResponse struct {
	HTTPStatusCode int    `json:"http_code,omitempty"` // http response status code
	Message        string `json:"message"`
	Placement      models.PlacementWithCreds
}

func (*PlacementResponse) Render

type PlacementStatusResponse added in v0.3.3

type PlacementStatusResponse struct {
	HTTPStatusCode int             `json:"http_code,omitempty"` // http response status code
	Status         []models.Status `json:"status,omitempty"`
}

func (*PlacementStatusResponse) Render added in v0.3.3

type ReservationResponse added in v0.3.5

type ReservationResponse struct {
	HTTPStatusCode int                `json:"http_code,omitempty"` // http response status code
	Message        string             `json:"message"`
	Reservation    models.Reservation `json:"reservation"`
}

func (*ReservationResponse) Render added in v0.3.5

type ResourceRequest

type ResourceRequest struct {
	Kind           string             `json:"kind"`
	Count          int                `json:"count"`
	Annotations    models.Annotations `json:"annotations,omitempty"`
	CloudSelector  models.Annotations `json:"cloud_selector,omitempty"`
	Quota          *v1.ResourceList   `json:"quota,omitempty"`
	LimitRange     *v1.LimitRange     `json:"limit_range,omitempty"`
	RequestedQuota *v1.ResourceQuota  `json:"-"` // plumbing
}

func (*ResourceRequest) Bind

func (p *ResourceRequest) Bind(r *http.Request) error

type ResourcesResponse added in v0.3.5

type ResourcesResponse struct {
	HTTPStatusCode int    `json:"http_code,omitempty"` // http response status code
	Message        string `json:"message"`
	Resources      []any  `json:"resources,omitempty"`
	Count          int    `json:"count,omitempty"`
}

func (*ResourcesResponse) Render added in v0.3.5

type SimpleMessage

type SimpleMessage struct {
	Message          string   `json:"message"`
	MessageMultiline []string `json:"message_multiline,omitempty"`
}

func (*SimpleMessage) Render

type TokenRequest

type TokenRequest struct {
	Claims map[string]any `json:"claims"`
}

func (*TokenRequest) Bind

func (t *TokenRequest) Bind(r *http.Request) error

type TokenResponse

type TokenResponse struct {
	Token           string     `json:"token,omitempty"`
	AccessToken     string     `json:"access_token,omitempty"`
	RefreshToken    string     `json:"refresh_token,omitempty"`
	Exp             *time.Time `json:"exp,omitempty"`
	AccessTokenExp  *time.Time `json:"access_token_exp,omitempty"`
	RefreshTokenExp *time.Time `json:"refresh_token_exp,omitempty"`
}

func (*TokenResponse) Render

type UpdateOcpSharedConfigurationRequest added in v1.0.0

type UpdateOcpSharedConfigurationRequest struct {
	DefaultSandboxQuota       *v1.ResourceQuota   `json:"default_sandbox_quota,omitempty"`
	QuotaRequired             *bool               `json:"quota_required"`
	StrictDefaultSandboxQuota *bool               `json:"strict_default_sandbox_quota"`
	SkipQuota                 *bool               `json:"skip_quota,omitempty"`
	Annotations               *models.Annotations `json:"annotations,omitempty"`
	Token                     *string             `json:"token,omitempty"`
	AdditionalVars            map[string]any      `json:"additional_vars,omitempty"`
	MaxMemoryUsagePercentage  *float64            `json:"max_memory_usage_percentage,omitempty"`
	MaxCpuUsagePercentage     *float64            `json:"max_cpu_usage_percentage,omitempty"`
	UsageSelector             *string             `json:"usage_node_selector,omitempty"`
	LimitRange                *v1.LimitRange      `json:"limit_range,omitempty"`
}

func (*UpdateOcpSharedConfigurationRequest) Bind added in v1.0.0

Jump to

Keyboard shortcuts

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