contentstate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package contentstate adapts the runner's private Linux content store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func New

func New(ctx context.Context, config Config) (*Adapter, error)

func (*Adapter) OpenPinned

func (adapter *Adapter) OpenPinned(
	ctx context.Context,
	identity jobcontract.ContentIdentity,
) (jobcontent.PinnedContent, error)

func (*Adapter) PutContent

func (adapter *Adapter) PutContent(
	ctx context.Context,
	identity jobcontract.ContentIdentity,
	source io.Reader,
) (bool, error)

func (*Adapter) Ready

func (adapter *Adapter) Ready(ctx context.Context) error

func (*Adapter) Store

func (adapter *Adapter) Store() jobcontent.Store

type Config

type Config struct {
	State          *runnerstate.State
	InstallationID string
	Now            func() time.Time
}

Jump to

Keyboard shortcuts

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