Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProjectName = "baseharbor-runtime-executor" ServiceName = "executor" ControlNetworkName = "baseharbor-runtime-control" ExecutorURL = "https://baseharbor-runtime-executor:9443" DefaultImage = "ghcr.io/mcpdev80/baseharbor-runtime:edge" )
View Source
const ObjectStorageS3V1 = "object-storage.s3/v1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg ClientConfig) (*Client, error)
func (*Client) Execute ¶
func (c *Client) Execute(ctx context.Context, request runtimeoperation.Request) (runtimeoperation.Result, error)
type ClientConfig ¶
type Config ¶
type ExecuteRequest ¶
type ExecuteResponse ¶
type ExecuteResponse struct {
ResourceID string `json:"resource_id,omitempty"`
Binding *objectstorage.RuntimeResourceBinding `json:"binding,omitempty"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(resources ResourceManager) (*Handler, error)
type ResourceManager ¶
type ResourceManager interface {
Create(ctx context.Context, application, environment, name string) (objectstorage.RuntimeResourceBinding, error)
Get(ctx context.Context, application, environment, name string) (objectstorage.RuntimeResourceBinding, error)
Delete(ctx context.Context, application, environment, name string) error
}
Click to show internal directories.
Click to hide internal directories.