Documentation ¶
Overview ¶
Copyright 2024 Harness Inc. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
TaskYmlPath string // path to the task.yml file which contains instructions for execution
}
type Deps ¶
type Deps struct { // keeping these as structs instead of string lists so they can be extended // in the future if needed. Apt []AptDep `json:"apt"` Brew []BrewDep `json:"brew"` }
Deps represents the dependencies for different package managers
type Go ¶
type Go struct {
Module string `json:"module"`
}
Go represents the Go module configuration
type TaskConfig ¶
type TaskConfig struct {
Spec Spec `json:"task"`
}
func Parse ¶
func Parse(r io.Reader) (*TaskConfig, error)
Parse parses the configuration from io.Reader r.
func ParseBytes ¶
func ParseBytes(b []byte) (*TaskConfig, error)
ParseBytes parses the configuration from bytes b.
func ParseFile ¶
func ParseFile(p string) (*TaskConfig, error)
ParseFile parses the configuration from path p.
func ParseString ¶
func ParseString(s string) (*TaskConfig, error)
ParseString parses the configuration from string s.
Click to show internal directories.
Click to hide internal directories.