types

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gitlab  RemoteProviderType = "gitlab"
	Github  RemoteProviderType = "github"
	Azure   RemoteStorageType  = "azure"
	AWSS3   RemoteStorageType  = "awss3"
	MINIOS3 RemoteStorageType  = "minios3"
)

Enum types

Variables

This section is empty.

Functions

This section is empty.

Types

type APILoggingSpec

type APILoggingSpec struct {
	// Default value for enabling API logging. Sidecars can always override this by setting `--enable-api-logging` to true or false explicitly.
	// The default value is false.
	Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
	// If true, health checks are not reported in API logs. Default: false.
	// This option has no effect if API logging is disabled.
	OmitHealthChecks bool `json:"omitHealthChecks,omitempty" yaml:"omitHealthChecks,omitempty"`
}

APILoggingSpec defines the configuration for API logging.

type Artifact

type Artifact struct {
	Id        int
	Name      string
	Payload   *bytes.Reader
	Nonce     string
	CreatedAt time.Time
}

type Configuration

Configuration that represents Conveyor config object.

type ConfigurationSpec

type ConfigurationSpec struct {
	PipelineID   int           `json:"pipelineID" yaml:"pipelineID" mapstructure:"PIPELINE_ID"`
	PipelineName string        `json:"pipelineName" yaml:"pipelineName" mapstructure:"PIPELINE_NAME"`
	ProjectID    int           `json:"projectID" yaml:"projectID" mapstructure:"PROJECT_ID"`
	ProjectName  string        `json:"projectName" yaml:"projectName" mapstructure:"PROJECT_NAME"`
	RefName      string        `json:"refName" yaml:"refName" mapstructure:"REF_NAME"`
	OwnerName    string        `json:"ownerName,omitempty" yaml:"ownerName,omitempty"  mapstructure:"OWNER_NAME"`
	CommitHash   string        `json:"commitHash" yaml:"commitHash" mapstructure:"COMMIT_HASH"`
	JobsNames    []string      `json:"jobsNames" yaml:"jobsNames" mapstructure:"STAGES_AND_JOBS_NAMES"`
	Storage      *StorageSpec  `json:"storage" yaml:"storage"`
	Provider     *ProviderSpec `json:"provider" yaml:"provider"`
	TracingSpec  TracingSpec   `json:"tracing,omitempty" yaml:"tracing,omitempty"`
	MetricSpec   MetricSpec    `json:"metric,omitempty" yaml:"metric,omitempty"`
	LoggingSpec  LoggingSpec   `json:"logging,omitempty" yaml:"logging,omitempty"`
}

Configuration specs

type LoggingSpec

type LoggingSpec struct {
	// Configure API logging.
	APILogging APILoggingSpec `json:"apiLogging,omitempty" yaml:"apiLogging,omitempty"`
}

LoggingSpec defines the configuration for logging.

type MetricSpec

type MetricSpec struct {
	Enabled bool `json:"enabled" yaml:"enabled"`
}

MetricSpec configuration for metrics.

type OtelSpec

type OtelSpec struct {
	Protocol        string `json:"protocol" yaml:"protocol"`
	EndpointAddress string `json:"endpointAddress" yaml:"endpointAddress"`
	IsSecure        bool   `json:"isSecure" yaml:"isSecure"`
}

OtelSpec defines Otel exporter configurations.

type ProviderSpec

type ProviderSpec struct {
	ProviderType   RemoteProviderType `yaml:"providerType"  mapstructure:"PROVIDER_TYPE"`
	ProviderApiURL string             `yaml:"providerApiURL"  mapstructure:"PROVIDER_API_URL"`
	ProviderToken  string             `yaml:"providerToken" mapstructure:"PROVIDER_TOKEN"`
}

ProviderSpec defines the configuration for Git Provider.

type RemoteProviderType

type RemoteProviderType string

Provider types

type RemoteStorageType

type RemoteStorageType string

Storage types

type StorageSpec

type StorageSpec struct {
	StorageType          RemoteStorageType `yaml:"storageType" mapstructure:"STORAGE_TYPE"`
	StorageToken         string            `yaml:"storageToken" mapstructure:"STORAGE_TOKEN"` //SharedKeySignature
	StorageAccountName   string            `yaml:"storageAccountName" mapstructure:"STORAGE_ACCOUNT_NAME"`
	StorageContainerName string            `yaml:"storageContainerName" mapstructure:"STORAGE_CONTAINER_NAME"`
}

StorageSpec defines the configuration for Remote Storage.

type TracingSpec

type TracingSpec struct {
	SamplingRate string     `json:"samplingRate" yaml:"samplingRate"`
	Stdout       bool       `json:"stdout" yaml:"stdout"`
	Zipkin       ZipkinSpec `json:"zipkin" yaml:"zipkin"`
	Otel         OtelSpec   `json:"otel" yaml:"otel"`
}

TracingSpec defines Tracing configurations.

type ZipkinSpec

type ZipkinSpec struct {
	EndpointAddress string `json:"endpointAddress" yaml:"endpointAddress"`
}

ZipkinSpec defines Zipkin exporter configurations.

Jump to

Keyboard shortcuts

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