orgLogging

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatchLogging

type CloudWatchLogging struct {
	Region        CloudWatchLoggingRegion        `json:"region,omitzero" validate:"required"`
	Credentials   SecretLink                     `json:"credentials" validate:"required"`
	RetentionDays *float64                       `json:"retentionDays,omitzero" validate:"integer,valid=1|3|5|7|14|30|60|90|120|150|180|365|400|545|731|1827|3653"`
	GroupName     FluentBitTemplate              `json:"groupName" validate:"required"`
	StreamName    FluentBitTemplate              `json:"streamName" validate:"required"`
	ExtractFields CloudWatchLoggingExtractFields `json:"extractFields,omitzero"`
}

type CloudWatchLoggingExtractFields

type CloudWatchLoggingExtractFields map[string]string

type CloudWatchLoggingRegion

type CloudWatchLoggingRegion string //ts:'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'ap-south-1' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-south-1' | 'eu-west-3' | 'eu-north-1' | 'me-south-1' | 'sa-east-1' | 'af-south-1'

CloudWatchLoggingRegion is orgLogging.ts:148 `Joi.string().valid(...AWS_REGIONS)`; EnumValues (below) carries the AWS_REGIONS list in TS declaration order.

func (CloudWatchLoggingRegion) EnumValues

func (CloudWatchLoggingRegion) EnumValues() []string

EnumValues ports CloudWatchLogging.region's .valid(...AWS_REGIONS). Without it the field was an unconstrained string and an org could be pointed at a region that does not exist (the failure then surfaced in the log pipeline, not at the API).

type CoralogixLogging

type CoralogixLogging struct {
	Cluster     CoralogixLoggingCluster `` /* 135-byte string literal not displayed */
	Credentials SecretLink              `json:"credentials" validate:"required"`
	App         LogPattern              `json:"app,omitzero"`
	Subsystem   LogPattern              `json:"subsystem,omitzero"`
}

type CoralogixLoggingCluster

type CoralogixLoggingCluster string

type DatadogLogging

type DatadogLogging struct {
	Host        DatadogLoggingHost `` /* 177-byte string literal not displayed */
	Credentials SecretLink         `json:"credentials" validate:"required"`
}

type DatadogLoggingHost

type DatadogLoggingHost string

type ElasticLogging

type ElasticLogging struct {
	Aws          *ElasticLoggingAws          `json:"aws,omitzero"`
	ElasticCloud *ElasticLoggingElasticCloud `json:"elasticCloud,omitzero"`
	Generic      *ElasticLoggingGeneric      `json:"generic,omitzero"`
}

ElasticLogging ports orgLogging.ts:224. .xor(elasticCloud, aws, generic) is attached by ValidationRule in validate.go.

func (ElasticLogging) ValidationRule

func (ElasticLogging) ValidationRule() *validate.Rule

ValidationRule layers the .xor('elasticCloud','aws','generic') that only a models.go comment recorded. Peer order is the .xor() argument order: Joi renders the peers in that order in both the object.xor and the object.missing message.

type ElasticLoggingAws

type ElasticLoggingAws struct {
	Host        EsAmazonHost `json:"host" validate:"required"`
	Port        float64      `json:"port" validate:"positive,default=443,integer,required"`
	Index       string       `json:"index" validate:"required"`
	Type        string       `json:"type" validate:"required"`
	Credentials SecretLink   `json:"credentials" validate:"required"`
	Region      string       `json:"region" validate:"required"`
}

ElasticLoggingAws ports orgLogging.ts AwsProvider.

type ElasticLoggingElasticCloud

type ElasticLoggingElasticCloud struct {
	Index       string     `json:"index" validate:"required"`
	Type        string     `json:"type" validate:"required"`
	Credentials SecretLink `json:"credentials" validate:"required"`
	CloudId     string     `json:"cloudId" validate:"required"`
}

ElasticLoggingElasticCloud ports orgLogging.ts ElastiCloudProvider.

type ElasticLoggingGeneric

type ElasticLoggingGeneric struct {
	Host        EsHost     `json:"host" validate:"required"`
	Port        *float64   `json:"port,omitzero" validate:"positive,default=443,integer"`
	Path        EsPath     `json:"path,omitzero"`
	Index       string     `json:"index" validate:"required"`
	Type        string     `json:"type" validate:"required"`
	Credentials SecretLink `json:"credentials" validate:"required"`
	Username    string     `json:"username,omitzero" validate:"optional"`
	Password    string     `json:"password,omitzero" validate:"optional"`
}

ElasticLoggingGeneric ports orgLogging.ts GenericESProvider.

type EsAmazonHost

type EsAmazonHost string

EsAmazonHost is a hostname that must additionally end with es.amazonaws.com (validHostname then esAmazonHost, in that order).

func (EsAmazonHost) ValidationRule

func (EsAmazonHost) ValidationRule() *validate.Rule

type EsHost

type EsHost string

EsHost is an RFC-1123-ish hostname (Joi.string().hostname()).

func (EsHost) ValidationRule

func (EsHost) ValidationRule() *validate.Rule

type EsPath

type EsPath string

EsPath is an elasticsearch path that must start with '/'.

func (EsPath) ValidationRule

func (EsPath) ValidationRule() *validate.Rule

type FluentBitTemplate

type FluentBitTemplate string

FluentBitTemplate is a fluent-bit template string: every $...$ pair must contain a '.' or ',' separator.

func (FluentBitTemplate) ValidationRule

func (FluentBitTemplate) ValidationRule() *validate.Rule

type FluentdLogging

type FluentdLogging struct {
	Host string       `json:"host" validate:"required"`
	Port *FluentdPort `json:"port,omitzero" validate:"min=1,max=65535,integer,default=24224"`
}

type FluentdPort

type FluentdPort float64

FluentdPort is the fluentd port. The field's min/max/integer/default modifier tags layer on top of the required-with-default custom.

func (FluentdPort) ValidationRule

func (FluentdPort) ValidationRule() *validate.Rule

type LogPattern

type LogPattern string

LogPattern is a log pattern string: only {org}/{gvc}/{workload}/{location} template vars are allowed.

func (LogPattern) ValidationRule

func (LogPattern) ValidationRule() *validate.Rule

type LogzioLogging

type LogzioLogging struct {
	ListenerHost LogzioLoggingListenerHost `json:"listenerHost,omitzero" validate:"valid=listener.logz.io|listener-nl.logz.io,required"`
	Credentials  SecretLink                `json:"credentials" validate:"required"`
}

type LogzioLoggingListenerHost

type LogzioLoggingListenerHost string

type LokiLogging added in v1.1.18

type LokiLogging struct {
	Endpoint    string     `json:"endpoint" validate:"required"`
	Credentials SecretLink `json:"credentials,omitzero" validate:"optional"`
	TenantId    string     `json:"tenantId,omitzero" validate:"optional"`
}

type OpenTelemetryLogging

type OpenTelemetryLogging struct {
	Endpoint    string                      `json:"endpoint" validate:"required"`
	Headers     OpenTelemetryLoggingHeaders `json:"headers,omitzero" validate:"optional"`
	Credentials SecretLink                  `json:"credentials,omitzero" validate:"optional"`
}

type OpenTelemetryLoggingHeaders

type OpenTelemetryLoggingHeaders map[string]string

type S3Logging

type S3Logging struct {
	Bucket      string     `json:"bucket" validate:"required"`
	Region      string     `json:"region" validate:"required"`
	Prefix      string     `json:"prefix,omitzero" validate:"default=/"`
	Credentials SecretLink `json:"credentials" validate:"required"`
}
type SecretLink string

SecretLink is a localLink string pointing to a resource of kind secret. Fields keep their required/optional modifier tag.

func (SecretLink) ValidationRule

func (SecretLink) ValidationRule() *validate.Rule

type StackdriverLogging

type StackdriverLogging struct {
	Credentials SecretLink                 `json:"credentials" validate:"required"`
	Location    StackdriverLoggingLocation `json:"location,omitzero" validate:"required"`
}

type StackdriverLoggingLocation

type StackdriverLoggingLocation string //ts:'us-east1' | 'us-east4' | 'us-central1' | 'us-west1' | 'europe-west4' | 'europe-west1' | 'europe-west3' | 'europe-west2' | 'asia-east1' | 'asia-southeast1' | 'asia-northeast1' | 'asia-south1' | 'australia-southeast1' | 'southamerica-east1' | 'africa-south1' | 'asia-east2' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south2' | 'asia-southeast2' | 'australia-southeast2' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west10' | 'europe-west12' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'me-central1' | 'me-central2' | 'me-west1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'southamerica-west1' | 'us-east5' | 'us-south1' | 'us-west2' | 'us-west3' | 'us-west4'

StackdriverLoggingLocation is orgLogging.ts:232 `Joi.string().valid(...GCP_REGIONS)`; EnumValues (below) carries the GCP_REGIONS list in TS declaration order.

func (StackdriverLoggingLocation) EnumValues

func (StackdriverLoggingLocation) EnumValues() []string

EnumValues ports StackdriverLogging.location's .valid(...GCP_REGIONS).

type SyslogLogging

type SyslogLogging struct {
	Host     string              `json:"host" validate:"required"`
	Port     float64             `json:"port" validate:"required,integer,positive"`
	Mode     SyslogLoggingMode   `json:"mode,omitzero" validate:"required,valid=tcp|udp|tls,default=tcp"`
	Format   SyslogLoggingFormat `json:"format,omitzero" validate:"valid=rfc3164|rfc5424,default=rfc5424,required"`
	Severity float64             `json:"severity" validate:"valid=0|1|2|3|4|5|6|7,default=6,required"`
}

type SyslogLoggingFormat

type SyslogLoggingFormat string
const (
	SyslogLoggingFormatRfc3164 SyslogLoggingFormat = "rfc3164"
	SyslogLoggingFormatRfc5424 SyslogLoggingFormat = "rfc5424"
)

type SyslogLoggingMode

type SyslogLoggingMode string
const (
	SyslogLoggingModeTcp SyslogLoggingMode = "tcp"
	SyslogLoggingModeUdp SyslogLoggingMode = "udp"
	SyslogLoggingModeTls SyslogLoggingMode = "tls"
)

Jump to

Keyboard shortcuts

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