screwdriver

package
v1.0.59 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Job(jobName, filePath string) (Job, error)
	JWT() string
	InitJWT() error
}

API has method to get job

func New

func New(apiURL, token, ua string) API

New creates a API

type EnvVars added in v1.0.39

type EnvVars []map[string]string

EnvVars is an environment slice

func (*EnvVars) AppendAll added in v1.0.39

func (en *EnvVars) AppendAll(en2 map[string]string)

AppendAll appends all elements in associative array to EnvVars

func (*EnvVars) UnmarshalJSON added in v1.0.39

func (en *EnvVars) UnmarshalJSON(data []byte) error

UnmarshalJSON replaces JSON of a normal associative array to EnvVars

type Job

type Job struct {
	Annotations map[string]interface{} `json:"annotations"`
	Steps       []Step                 `json:"commands"`
	Environment EnvVars                `json:"environment"`
	Image       string                 `json:"image"`
}

Job is job entity struct

type Step

type Step struct {
	Name    string `json:"name"`
	Command string `json:"command"`
}

Step is step entity struct

Jump to

Keyboard shortcuts

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