config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ShowEnv           bool
	ShowCosts         string
	Metrics           []string
	NetworkInterface  string
	DiskDevice        string
	Sccache           string
	ZctionsResultsURL string
	ActionsResultsURL string
}

Config holds the action's configuration values derived from inputs and environment.

func NewConfigFromInputs

func NewConfigFromInputs(action *githubactions.Action) (*Config, error)

NewConfigFromInputs parses action inputs and environment variables to build the Config struct.

func (*Config) HasMetrics

func (c *Config) HasMetrics() bool

func (*Config) HasSccache

func (c *Config) HasSccache() bool

func (*Config) HasShowCosts

func (c *Config) HasShowCosts() bool

func (*Config) HasShowEnv

func (c *Config) HasShowEnv() bool

func (*Config) IsUsingLinux

func (c *Config) IsUsingLinux() bool

func (*Config) IsUsingRunsOn

func (c *Config) IsUsingRunsOn() bool

type Tag

type Tag struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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