Help us shape the future of Go! Take the 2026 Go Developer Survey

conf

package
v1.127.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Auth

type Auth struct {

	// Public key used to verify the received JWT token
	// This token in the context of chainloop has been crafted by the controlplane
	//
	// Deprecated: Marked as deprecated in conf.proto.
	RobotAccountPublicKeyPath string `` /* 142-byte string literal not displayed */
	// Public key used to verify the received JWT token
	PublicKeyPath string `protobuf:"bytes,2,opt,name=public_key_path,json=publicKeyPath,proto3" json:"public_key_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated

func (*Auth) Descriptor() ([]byte, []int)

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetPublicKeyPath added in v0.16.0

func (x *Auth) GetPublicKeyPath() string

func (*Auth) GetRobotAccountPublicKeyPath deprecated

func (x *Auth) GetRobotAccountPublicKeyPath() string

Deprecated: Marked as deprecated in conf.proto.

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

func (x *Auth) ProtoReflect() protoreflect.Message

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

type Bootstrap

type Bootstrap struct {
	Server             *Server                  `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Auth               *Auth                    `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
	Observability      *Bootstrap_Observability `protobuf:"bytes,3,opt,name=observability,proto3" json:"observability,omitempty"`
	CredentialsService *v1.Credentials          `protobuf:"bytes,4,opt,name=credentials_service,json=credentialsService,proto3" json:"credentials_service,omitempty"`
	// Optional NATS server configuration to publish audit events to the
	// control-plane-owned stream. When unset, event publishing is disabled.
	NatsServer *Bootstrap_NatsServer `protobuf:"bytes,5,opt,name=nats_server,json=natsServer,proto3" json:"nats_server,omitempty"`
	// Local directory where uploads and downloads are staged on disk and verified
	// against their digest: uploads before reaching the backend, downloads before
	// the first byte is sent to the client. It must be a writable volume; in
	// production a dedicated emptyDir is mounted here (NOT tmpfs/RAM, and NOT the
	// /tmp secret mount). Required: when unset the service refuses to start.
	StagingDir string `protobuf:"bytes,6,opt,name=staging_dir,json=stagingDir,proto3" json:"staging_dir,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

func (*Bootstrap) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetAuth

func (x *Bootstrap) GetAuth() *Auth

func (*Bootstrap) GetCredentialsService

func (x *Bootstrap) GetCredentialsService() *v1.Credentials

func (*Bootstrap) GetNatsServer added in v1.100.4

func (x *Bootstrap) GetNatsServer() *Bootstrap_NatsServer

func (*Bootstrap) GetObservability

func (x *Bootstrap) GetObservability() *Bootstrap_Observability

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetStagingDir added in v1.110.0

func (x *Bootstrap) GetStagingDir() string

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

func (x *Bootstrap) ProtoReflect() protoreflect.Message

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

type Bootstrap_NatsServer added in v1.100.4

type Bootstrap_NatsServer struct {

	// NATS server URI, e.g. "nats://localhost:4222"
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// Types that are valid to be assigned to Authentication:
	//
	//	*Bootstrap_NatsServer_Token
	Authentication isBootstrap_NatsServer_Authentication `protobuf_oneof:"authentication"`
	// contains filtered or unexported fields
}

func (*Bootstrap_NatsServer) Descriptor deprecated added in v1.100.4

func (*Bootstrap_NatsServer) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap_NatsServer.ProtoReflect.Descriptor instead.

func (*Bootstrap_NatsServer) GetAuthentication added in v1.100.4

func (x *Bootstrap_NatsServer) GetAuthentication() isBootstrap_NatsServer_Authentication

func (*Bootstrap_NatsServer) GetToken added in v1.100.4

func (x *Bootstrap_NatsServer) GetToken() string

func (*Bootstrap_NatsServer) GetUri added in v1.100.4

func (x *Bootstrap_NatsServer) GetUri() string

func (*Bootstrap_NatsServer) ProtoMessage added in v1.100.4

func (*Bootstrap_NatsServer) ProtoMessage()

func (*Bootstrap_NatsServer) ProtoReflect added in v1.100.4

func (x *Bootstrap_NatsServer) ProtoReflect() protoreflect.Message

func (*Bootstrap_NatsServer) Reset added in v1.100.4

func (x *Bootstrap_NatsServer) Reset()

func (*Bootstrap_NatsServer) String added in v1.100.4

func (x *Bootstrap_NatsServer) String() string

type Bootstrap_NatsServer_Token added in v1.100.4

type Bootstrap_NatsServer_Token struct {
	Token string `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
}

type Bootstrap_Observability

type Bootstrap_Observability struct {
	Sentry  *Bootstrap_Observability_Sentry  `protobuf:"bytes,1,opt,name=sentry,proto3" json:"sentry,omitempty"`
	Tracing *Bootstrap_Observability_Tracing `protobuf:"bytes,2,opt,name=tracing,proto3" json:"tracing,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap_Observability) Descriptor deprecated

func (*Bootstrap_Observability) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap_Observability.ProtoReflect.Descriptor instead.

func (*Bootstrap_Observability) GetSentry

func (*Bootstrap_Observability) GetTracing added in v1.95.2

func (*Bootstrap_Observability) ProtoMessage

func (*Bootstrap_Observability) ProtoMessage()

func (*Bootstrap_Observability) ProtoReflect

func (x *Bootstrap_Observability) ProtoReflect() protoreflect.Message

func (*Bootstrap_Observability) Reset

func (x *Bootstrap_Observability) Reset()

func (*Bootstrap_Observability) String

func (x *Bootstrap_Observability) String() string

type Bootstrap_Observability_Sentry

type Bootstrap_Observability_Sentry struct {
	Dsn         string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"`
	Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"`
	// contains filtered or unexported fields
}

Sentry notification support

func (*Bootstrap_Observability_Sentry) Descriptor deprecated

func (*Bootstrap_Observability_Sentry) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap_Observability_Sentry.ProtoReflect.Descriptor instead.

func (*Bootstrap_Observability_Sentry) GetDsn

func (*Bootstrap_Observability_Sentry) GetEnvironment

func (x *Bootstrap_Observability_Sentry) GetEnvironment() string

func (*Bootstrap_Observability_Sentry) ProtoMessage

func (*Bootstrap_Observability_Sentry) ProtoMessage()

func (*Bootstrap_Observability_Sentry) ProtoReflect

func (*Bootstrap_Observability_Sentry) Reset

func (x *Bootstrap_Observability_Sentry) Reset()

func (*Bootstrap_Observability_Sentry) String

type Bootstrap_Observability_Tracing added in v1.95.2

type Bootstrap_Observability_Tracing struct {

	// Whether tracing is enabled. Disabled by default for backward compatibility.
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// OTLP gRPC exporter endpoint (e.g. "localhost:4317")
	Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// Whether to use insecure connection (no TLS). Useful for local development.
	Insecure bool `protobuf:"varint,3,opt,name=insecure,proto3" json:"insecure,omitempty"`
	// Sampling ratio between 0.0 and 1.0. Defaults to 1.0 (sample everything) when unset.
	SamplingRatio *float64 `protobuf:"fixed64,4,opt,name=sampling_ratio,json=samplingRatio,proto3,oneof" json:"sampling_ratio,omitempty"`
	// contains filtered or unexported fields
}

OpenTelemetry tracing configuration

func (*Bootstrap_Observability_Tracing) Descriptor deprecated added in v1.95.2

func (*Bootstrap_Observability_Tracing) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap_Observability_Tracing.ProtoReflect.Descriptor instead.

func (*Bootstrap_Observability_Tracing) GetEnabled added in v1.95.2

func (x *Bootstrap_Observability_Tracing) GetEnabled() bool

func (*Bootstrap_Observability_Tracing) GetEndpoint added in v1.95.2

func (x *Bootstrap_Observability_Tracing) GetEndpoint() string

func (*Bootstrap_Observability_Tracing) GetInsecure added in v1.95.2

func (x *Bootstrap_Observability_Tracing) GetInsecure() bool

func (*Bootstrap_Observability_Tracing) GetSamplingRatio added in v1.95.2

func (x *Bootstrap_Observability_Tracing) GetSamplingRatio() float64

func (*Bootstrap_Observability_Tracing) ProtoMessage added in v1.95.2

func (*Bootstrap_Observability_Tracing) ProtoMessage()

func (*Bootstrap_Observability_Tracing) ProtoReflect added in v1.95.2

func (*Bootstrap_Observability_Tracing) Reset added in v1.95.2

func (*Bootstrap_Observability_Tracing) String added in v1.95.2

type Server

type Server struct {

	// Shared HTTP and native gRPC endpoint
	Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	// GRPC API endpoint
	Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
	// hHTTP server where the prometheus metrics will get exposed
	HttpMetrics *Server_HTTP `protobuf:"bytes,3,opt,name=http_metrics,json=httpMetrics,proto3" json:"http_metrics,omitempty"`
	// The native gRPC listener remains enabled when this field is unset.
	LegacyGrpcListener *bool `protobuf:"varint,4,opt,name=legacy_grpc_listener,json=legacyGrpcListener,proto3,oneof" json:"legacy_grpc_listener,omitempty"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpc

func (x *Server) GetGrpc() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_HTTP

func (*Server) GetHttpMetrics

func (x *Server) GetHttpMetrics() *Server_HTTP

func (*Server) GetLegacyGrpcListener added in v1.126.0

func (x *Server) GetLegacyGrpcListener() bool

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type Server_CORS added in v1.82.0

type Server_CORS struct {
	AllowOrigins []string `protobuf:"bytes,1,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_CORS) Descriptor deprecated added in v1.82.0

func (*Server_CORS) Descriptor() ([]byte, []int)

Deprecated: Use Server_CORS.ProtoReflect.Descriptor instead.

func (*Server_CORS) GetAllowOrigins added in v1.82.0

func (x *Server_CORS) GetAllowOrigins() []string

func (*Server_CORS) ProtoMessage added in v1.82.0

func (*Server_CORS) ProtoMessage()

func (*Server_CORS) ProtoReflect added in v1.82.0

func (x *Server_CORS) ProtoReflect() protoreflect.Message

func (*Server_CORS) Reset added in v1.82.0

func (x *Server_CORS) Reset()

func (*Server_CORS) String added in v1.82.0

func (x *Server_CORS) String() string

type Server_GRPC

type Server_GRPC struct {
	Network   string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr      string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout   *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	TlsConfig *Server_TLS          `protobuf:"bytes,4,opt,name=tls_config,json=tlsConfig,proto3" json:"tls_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_GRPC) Descriptor deprecated

func (*Server_GRPC) Descriptor() ([]byte, []int)

Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.

func (*Server_GRPC) GetAddr

func (x *Server_GRPC) GetAddr() string

func (*Server_GRPC) GetNetwork

func (x *Server_GRPC) GetNetwork() string

func (*Server_GRPC) GetTimeout

func (x *Server_GRPC) GetTimeout() *durationpb.Duration

func (*Server_GRPC) GetTlsConfig added in v0.16.1

func (x *Server_GRPC) GetTlsConfig() *Server_TLS

func (*Server_GRPC) ProtoMessage

func (*Server_GRPC) ProtoMessage()

func (*Server_GRPC) ProtoReflect

func (x *Server_GRPC) ProtoReflect() protoreflect.Message

func (*Server_GRPC) Reset

func (x *Server_GRPC) Reset()

func (*Server_GRPC) String

func (x *Server_GRPC) String() string

type Server_HTTP

type Server_HTTP struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// CORS configuration for the HTTP download endpoint
	Cors *Server_CORS `protobuf:"bytes,4,opt,name=cors,proto3" json:"cors,omitempty"`
	// TLS for every protocol on the shared HTTP endpoint.
	TlsConfig *Server_TLS `protobuf:"bytes,5,opt,name=tls_config,json=tlsConfig,proto3" json:"tls_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_HTTP) Descriptor deprecated

func (*Server_HTTP) Descriptor() ([]byte, []int)

Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.

func (*Server_HTTP) GetAddr

func (x *Server_HTTP) GetAddr() string

func (*Server_HTTP) GetCors added in v1.82.1

func (x *Server_HTTP) GetCors() *Server_CORS

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetTimeout

func (x *Server_HTTP) GetTimeout() *durationpb.Duration

func (*Server_HTTP) GetTlsConfig added in v1.126.0

func (x *Server_HTTP) GetTlsConfig() *Server_TLS

func (*Server_HTTP) ProtoMessage

func (*Server_HTTP) ProtoMessage()

func (*Server_HTTP) ProtoReflect

func (x *Server_HTTP) ProtoReflect() protoreflect.Message

func (*Server_HTTP) Reset

func (x *Server_HTTP) Reset()

func (*Server_HTTP) String

func (x *Server_HTTP) String() string

type Server_TLS added in v0.16.1

type Server_TLS struct {

	// path to certificate and private key
	Certificate string `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
	PrivateKey  string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_TLS) Descriptor deprecated added in v0.16.1

func (*Server_TLS) Descriptor() ([]byte, []int)

Deprecated: Use Server_TLS.ProtoReflect.Descriptor instead.

func (*Server_TLS) GetCertificate added in v0.16.1

func (x *Server_TLS) GetCertificate() string

func (*Server_TLS) GetPrivateKey added in v0.16.1

func (x *Server_TLS) GetPrivateKey() string

func (*Server_TLS) ProtoMessage added in v0.16.1

func (*Server_TLS) ProtoMessage()

func (*Server_TLS) ProtoReflect added in v0.16.1

func (x *Server_TLS) ProtoReflect() protoreflect.Message

func (*Server_TLS) Reset added in v0.16.1

func (x *Server_TLS) Reset()

func (*Server_TLS) String added in v0.16.1

func (x *Server_TLS) String() string

Jump to

Keyboard shortcuts

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