runner

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAllEnv

func BindAllEnv(v *viper.Viper)

Types

type Config

type Config struct {
	shared.Config

	ConfigFile *ConfigFile

	GRPCClient *grpc.GRPCClient

	FileClient *fileclient.FileClient

	APIClient *swagger.APIClient

	GithubTarballURL string

	TerraformConf TerraformConf
}

func (*Config) SetTerraformDir

func (c *Config) SetTerraformDir(path string)

SetTerraformDir is used to set the terraform directory as it may change after

type ConfigFile

type ConfigFile struct {
	Resources ConfigFileResources `mapstructure:"resources" json:"resources,omitempty"`

	GRPC ConfigFileGRPC `mapstructure:"grpc" json:"grpc,omitempty"`

	API ConfigFileAPI `mapstructure:"api" json:"api,omitempty"`

	VCS ConfigFileVCS `mapstructure:"vcs" json:"github,omitempty"`

	Terraform ConfigFileTerraform `mapstructure:"terraform" json:"terraform,omitempty"`
}

type ConfigFileAPI

type ConfigFileAPI struct {
	APIToken string `mapstructure:"token" json:"token,omitempty"`

	APIServerAddress string `mapstructure:"serverAddress" json:"serverAddress,omitempty" default:"http://localhost:8080"`
}

type ConfigFileGRPC

type ConfigFileGRPC struct {
	// GRPC server address
	GRPCServerAddress string `mapstructure:"serverAddress" json:"serverAddress,omitempty" default:"http://localhost:8080"`

	// GRPC connection auth
	GRPCToken string `mapstructure:"token" json:"token,omitempty"`
}

type ConfigFileResources

type ConfigFileResources struct {
	TeamID          string `mapstructure:"teamID" json:"teamID,omitempty"`
	ModuleID        string `mapstructure:"moduleID" json:"moduleID,omitempty"`
	ModuleRunID     string `mapstructure:"moduleRunID" json:"moduleRunID,omitempty"`
	ModuleMonitorID string `mapstructure:"moduleMonitorID" json:"moduleMonitorID,omitempty"`
}

type ConfigFileTerraform

type ConfigFileTerraform struct {
	// TFDir is a relative or absolute path to the terraform directory
	TFDir string `mapstructure:"dir" json:"dir,omitempty"`
}

type ConfigFileVCS

type ConfigFileVCS struct {
	VCSRepositoryName string `mapstructure:"repositoryName" json:"repositoryName,omitempty"`
	VCSModulePath     string `mapstructure:"modulePath" json:"modulePath,omitempty"`
	VCSSHA            string `mapstructure:"sha" json:"sha,omitempty"`
	VCSRepositoryDest string `mapstructure:"repositoryDest" json:"repositoryDest,omitempty" default:"./bin/tmp"`
}

type TerraformConf

type TerraformConf struct {
	TFDir string
}

TerraformConf is the configuration for Terraform params

Jump to

Keyboard shortcuts

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