provider

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRunnerTags

func FormatRunnerTags(tags map[string]string) (string, error)

FormatRunnerTags encodes tags for the runner's RUNNER_TAGS environment variable.

Types

type CreateRequest

type CreateRequest struct {
	RunnerID      string
	FleetID       string
	RunnerVersion string
	Bootstrap     []byte
}

type Provider

type Provider interface {
	Name() string
	List(ctx context.Context, fleetID string) ([]Resource, error)
	BuildBootstrap(request RunnerBootstrap) ([]byte, error)
	Create(ctx context.Context, request CreateRequest) (Resource, error)
	Delete(ctx context.Context, resource Resource) error
}

type Resource

type Resource struct {
	ID        string
	RunnerID  string
	FleetID   string
	State     string
	CreatedAt time.Time
}

type RunnerBootstrap

type RunnerBootstrap struct {
	RunnerID          string
	FleetID           string
	RunnerAPIURL      string
	RegistrationToken string
	Artifact          artifact.Artifact
	Tags              map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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