config

package
v0.1.22100 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecatedImageCheck

func DeprecatedImageCheck(response *ConfigResponse) error

Processes the config down to v2.0, then checks image used against the block list

Types

type CompileConfigRequest

type CompileConfigRequest struct {
	ConfigYaml string  `json:"config_yaml"`
	Options    Options `json:"options"`
}

type ConfigError

type ConfigError struct {
	Message string `json:"message"`
}

type ConfigResponse

type ConfigResponse struct {
	Valid      bool          `json:"valid"`
	SourceYaml string        `json:"source-yaml"`
	OutputYaml string        `json:"output-yaml"`
	Errors     []ConfigError `json:"errors"`
}

func ConfigQuery

func ConfigQuery(
	rest *rest.Client,
	configPath string,
	orgID string,
	params pipeline.Parameters,
	values pipeline.Values,
) (*ConfigResponse, error)

ConfigQuery - attempts to compile or validate a given config file with the passed in params/values. If the orgID is passed in, the config-compilation with private orbs should work.

type Options

type Options struct {
	OwnerID            string            `json:"owner_id,omitempty"`
	PipelineParameters string            `json:"pipeline_parameters,omitempty"`
	PipelineValues     map[string]string `json:"pipeline_values,omitempty"`
}

Jump to

Keyboard shortcuts

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