gcp_batch

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package gcp_batch contains code for accessing compute resources via Google Batch. ref: https://cloud.google.com/batch/docs ref: https://cloud.google.com/batch/docs/reference/rest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	events.Backend
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(ctx context.Context, conf *config.GCPBatch, reader tes.ReadOnlyServer, writer events.Writer, log *logger.Logger) (*Backend, error)

func (*Backend) Cancel

func (b *Backend) Cancel(ctx context.Context, taskID string) error

func (*Backend) Close

func (b *Backend) Close()

func (*Backend) NewStorage

func (b *Backend) NewStorage(conf config.Config) (*storage.GoogleCloud, error)

Example storage interface

func (*Backend) Submit

func (b *Backend) Submit(task *tes.Task) error

func (*Backend) WriteEvent

func (b *Backend) WriteEvent(ctx context.Context, ev *events.Event) error

Jump to

Keyboard shortcuts

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