Versions in this module Expand all Collapse all v1 v1.3.1 Mar 14, 2026 v1.3.0 Mar 12, 2026 Changes in this version + var ErrLogsNotImplemented = errors.New("nomad: logs not implemented") + type Config struct + Address string + Namespace string + Region string + Token string + type Option func(*Provider) error + func WithAddress(addr string) Option + func WithConfig(cfg Config) Option + func WithNamespace(ns string) Option + func WithRegion(region string) Option + func WithToken(token string) Option + type Provider struct + func New(opts ...Option) (*Provider, error) + func (p *Provider) Capabilities() []provider.Capability + func (p *Provider) Deploy(_ context.Context, req provider.DeployRequest) (*provider.DeployResult, error) + func (p *Provider) Deprovision(_ context.Context, _ id.ID) error + func (p *Provider) Exec(_ context.Context, _ id.ID, _ provider.ExecRequest) (*provider.ExecResult, error) + func (p *Provider) Info() provider.ProviderInfo + func (p *Provider) Logs(_ context.Context, _ id.ID, _ provider.LogOptions) (io.ReadCloser, error) + func (p *Provider) Provision(_ context.Context, req provider.ProvisionRequest) (*provider.ProvisionResult, error) + func (p *Provider) Resources(_ context.Context, _ id.ID) (*provider.ResourceUsage, error) + func (p *Provider) Restart(_ context.Context, _ id.ID) error + func (p *Provider) Rollback(_ context.Context, _ id.ID, _ id.ID) error + func (p *Provider) Scale(_ context.Context, _ id.ID, _ provider.ResourceSpec) error + func (p *Provider) Start(_ context.Context, _ id.ID) error + func (p *Provider) Status(_ context.Context, _ id.ID) (*provider.InstanceStatus, error) + func (p *Provider) Stop(_ context.Context, _ id.ID) error