Documentation
¶
Index ¶
- Constants
- func DestroyShared(ctx context.Context, runtime Runtime, dataDir string) error
- func DestroySharedAt(ctx context.Context, runtime Runtime, dataDir, namespace string) error
- func Run(ctx context.Context, cfg Config) error
- type Client
- type ClientConfig
- type Config
- type ExecuteRequest
- type ExecuteResponse
- type Files
- func EnsureFiles(dataDir string, identity openbao.RuntimeExecutorMTLSFiles, ...) (Files, error)
- func EnsureFilesAt(dataDir, namespace string, identity openbao.RuntimeExecutorMTLSFiles, ...) (Files, error)
- func ExistingFiles(dataDir string) (Files, error)
- func ExistingFilesAt(dataDir, namespace string) (Files, error)
- type Handler
- type ObservabilityBinding
- type ResourceManager
- type Runtime
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 ¶
func DestroySharedAt ¶ added in v0.4.15
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 Files ¶
type Files struct {
Dir string
Compose string
Env string
Image string
Project string
ControlNetwork string
}
func EnsureFiles ¶
func EnsureFiles(dataDir string, identity openbao.RuntimeExecutorMTLSFiles, adminCredentialsPath, s3Endpoint, s3TrustPath string, observability ...ObservabilityBinding) (Files, error)
func EnsureFilesAt ¶ added in v0.4.15
func EnsureFilesAt(dataDir, namespace string, identity openbao.RuntimeExecutorMTLSFiles, adminCredentialsPath, s3Endpoint, s3TrustPath string, observability ...ObservabilityBinding) (Files, error)
func ExistingFiles ¶
func ExistingFilesAt ¶ added in v0.4.15
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(resources ResourceManager) (*Handler, error)
type ObservabilityBinding ¶ added in v0.4.15
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.