appinfo

package
v0.0.0-...-f7d1ac2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package appinfo is responsible for defining REST endpoints which are serving overall information about created and managed resources e.g. Runtimes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceFinder

type InstanceFinder interface {
	FindAllJoinedWithOperations(prct ...predicate.Predicate) ([]internal.InstanceWithOperation, error)
}

type LastOperationFinder

type LastOperationFinder interface {
	GetLastOperation(instanceID string) (*internal.Operation, error)
}

type OperationStatusDTO

type OperationStatusDTO struct {
	State       string `json:"state"`
	Description string `json:"description"`
}

type ResponseWriter

type ResponseWriter interface {
	InternalServerError(rw http.ResponseWriter, r *http.Request, err error, context string)
}

type RuntimeDTO

type RuntimeDTO struct {
	RuntimeID         string    `json:"runtimeId"`
	GlobalAccountID   string    `json:"globalAccountId"`
	SubAccountID      string    `json:"subaccountId"`
	SubAccountRegion  string    `json:"subaccountRegion"`
	ServiceInstanceID string    `json:"serviceInstanceId"`
	ServiceClassID    string    `json:"serviceClassId"`
	ServiceClassName  string    `json:"serviceClassName"`
	ServicePlanID     string    `json:"servicePlanId"`
	ServicePlanName   string    `json:"servicePlanName"`
	Status            StatusDTO `json:"status"`
}

type RuntimeInfoHandler

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

func NewRuntimeInfoHandler

func NewRuntimeInfoHandler(instanceFinder InstanceFinder, lastOpFinder LastOperationFinder, plansConfig broker.PlansConfig, region string, respWriter ResponseWriter) *RuntimeInfoHandler

func (*RuntimeInfoHandler) ServeHTTP

func (h *RuntimeInfoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type StatusDTO

type StatusDTO struct {
	CreatedAt      *time.Time          `json:"createdAt,omitempty"`
	UpdatedAt      *time.Time          `json:"updatedAt,omitempty"`
	DeletedAt      *time.Time          `json:"deletedAt,omitempty"`
	Provisioning   *OperationStatusDTO `json:"provisioning,omitempty"`
	Deprovisioning *OperationStatusDTO `json:"deprovisioning,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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