rc

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package rc provides run control types for the mito tool and tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	// Basic is a Basic Authentication configuration.
	Basic *lib.BasicAuth `yaml:"basic"`
	// OAuth2 is an OAuth2.0 authentication configuration.
	OAuth2 *OAuth2Config `yaml:"oauth2"`
}

AuthConfig controls configuration of HTTP request authentication behavior.

type Config

type Config struct {
	// Globals is the set of global variables available to the CEL environment.
	Globals map[string]interface{} `yaml:"globals"`
	// Regexps is a look-up into a table of pre-compiled regular expressions.
	Regexps map[string]string `yaml:"regexp"`
	// XSDs is a look-up into a table of pre-compiled XML document descriptions.
	XSDs map[string]string `yaml:"xsd"`
	// Auth is the authentication configuration for HTTP requests.
	Auth *AuthConfig `yaml:"auth"`
	// MaxExecutions is the maximum number of want_more executions for a single
	// run of mito. This value is overridden by the -max_executions command
	// line flag.
	MaxExecutions *int `yaml:"max_executions"`
}

Config controls configuration of the mito tool run behavior.

type OAuth2Config

type OAuth2Config struct {
	Provider string `yaml:"provider"`

	ClientID       string     `yaml:"client.id"`
	ClientSecret   *string    `yaml:"client.secret"`
	EndpointParams url.Values `yaml:"endpoint_params"`
	Password       string     `yaml:"password"`
	Scopes         []string   `yaml:"scopes"`
	TokenURL       string     `yaml:"token_url"`
	User           string     `yaml:"user"`

	GoogleCredentialsFile  string `yaml:"google.credentials_file"`
	GoogleCredentialsJSON  string `yaml:"google.credentials_json"`
	GoogleJWTFile          string `yaml:"google.jwt_file"`
	GoogleJWTJSON          string `yaml:"google.jwt_json"`
	GoogleDelegatedAccount string `yaml:"google.delegated_account"`

	AzureTenantID string `yaml:"azure.tenant_id"`
	AzureResource string `yaml:"azure.resource"`
}

OAuth2Config controls configuration of HTTP OAuth2.0 request authentication behavior.

Jump to

Keyboard shortcuts

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