local

package
v1.5.0-dev16 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpecConfig added in v1.4.0

func NewSpecConfig() *models.SpecConfig

func ResolveAddress added in v1.3.0

func ResolveAddress(ctx context.Context, address string) string

Types

type LocalPublisherServer

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

func NewLocalPublisherServer

func NewLocalPublisherServer(ctx context.Context, directory string, port int) *LocalPublisherServer

func (*LocalPublisherServer) Run

func (s *LocalPublisherServer) Run(ctx context.Context)

type Publisher

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

func NewLocalPublisher

func NewLocalPublisher(ctx context.Context, directory string, host string, port int) (*Publisher, error)

func (*Publisher) IsInstalled

func (p *Publisher) IsInstalled(ctx context.Context) (bool, error)

IsInstalled checks if the publisher is installed and it determines this based on the presence of the base directory and a local server.

func (*Publisher) PublishResult

func (p *Publisher) PublishResult(
	ctx context.Context, execution *models.Execution, resultPath string) (models.SpecConfig, error)

func (*Publisher) ValidateJob

func (p *Publisher) ValidateJob(ctx context.Context, j models.Job) error

type PublisherSpec added in v1.4.0

type PublisherSpec struct{}

PublisherSpec mainly exists as a form of documentation to indicate the local publisher spec does not contain params

Jump to

Keyboard shortcuts

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