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

v1

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controlplane_config_v1_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllowList added in v1.4.3

type AllowList struct {

	// allow_list is a list of allowed email addresses or domains
	// for example ["@chainloop.dev", "foo@mycompany.org"]
	Rules []string `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// Custom message to show when a user is not allowed
	CustomMessage string `protobuf:"bytes,2,opt,name=custom_message,json=customMessage,proto3" json:"custom_message,omitempty"`
	// The list of routes that will be affected by this middleware, by default all of them
	SelectedRoutes []string `protobuf:"bytes,3,rep,name=selected_routes,json=selectedRoutes,proto3" json:"selected_routes,omitempty"`
	// Whether to treat the information stored in the user table as the source of truth
	// if false, the allowList rules will be used as source of truth
	// if true, the allowList rules will be used as a starting point to populate the property in the DB
	AllowDbOverrides bool `protobuf:"varint,4,opt,name=allow_db_overrides,json=allowDbOverrides,proto3" json:"allow_db_overrides,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowList) Descriptor deprecated added in v1.4.3

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

Deprecated: Use AllowList.ProtoReflect.Descriptor instead.

func (*AllowList) GetAllowDbOverrides added in v1.4.3

func (x *AllowList) GetAllowDbOverrides() bool

func (*AllowList) GetCustomMessage added in v1.4.3

func (x *AllowList) GetCustomMessage() string

func (*AllowList) GetRules added in v1.4.3

func (x *AllowList) GetRules() []string

func (*AllowList) GetSelectedRoutes added in v1.4.3

func (x *AllowList) GetSelectedRoutes() []string

func (*AllowList) ProtoMessage added in v1.4.3

func (*AllowList) ProtoMessage()

func (*AllowList) ProtoReflect added in v1.4.3

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

func (*AllowList) Reset added in v1.4.3

func (x *AllowList) Reset()

func (*AllowList) String added in v1.4.3

func (x *AllowList) String() string

type DatabaseConfig added in v1.5.0

type DatabaseConfig struct {
	Driver          string               `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Source          string               `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	MinOpenConns    int32                `protobuf:"varint,3,opt,name=min_open_conns,json=minOpenConns,proto3" json:"min_open_conns,omitempty"`
	MaxOpenConns    int32                `protobuf:"varint,4,opt,name=max_open_conns,json=maxOpenConns,proto3" json:"max_open_conns,omitempty"`
	MaxConnIdleTime *durationpb.Duration `protobuf:"bytes,5,opt,name=max_conn_idle_time,json=maxConnIdleTime,proto3" json:"max_conn_idle_time,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabaseConfig) Descriptor deprecated added in v1.5.0

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

Deprecated: Use DatabaseConfig.ProtoReflect.Descriptor instead.

func (*DatabaseConfig) GetDriver added in v1.5.0

func (x *DatabaseConfig) GetDriver() string

func (*DatabaseConfig) GetMaxConnIdleTime added in v1.5.0

func (x *DatabaseConfig) GetMaxConnIdleTime() *durationpb.Duration

func (*DatabaseConfig) GetMaxOpenConns added in v1.5.0

func (x *DatabaseConfig) GetMaxOpenConns() int32

func (*DatabaseConfig) GetMinOpenConns added in v1.5.0

func (x *DatabaseConfig) GetMinOpenConns() int32

func (*DatabaseConfig) GetSource added in v1.5.0

func (x *DatabaseConfig) GetSource() string

func (*DatabaseConfig) ProtoMessage added in v1.5.0

func (*DatabaseConfig) ProtoMessage()

func (*DatabaseConfig) ProtoReflect added in v1.5.0

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

func (*DatabaseConfig) Reset added in v1.5.0

func (x *DatabaseConfig) Reset()

func (*DatabaseConfig) String added in v1.5.0

func (x *DatabaseConfig) String() string

type OnboardingSpec

type OnboardingSpec struct {

	// Name of the organization
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Role to assign to the user
	Role v1.MembershipRole `protobuf:"varint,2,opt,name=role,proto3,enum=controlplane.v1.MembershipRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

OnboardingSpec is a configuration to automatically onboard users in organizations with specific roles

func (*OnboardingSpec) Descriptor deprecated

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

Deprecated: Use OnboardingSpec.ProtoReflect.Descriptor instead.

func (*OnboardingSpec) GetName

func (x *OnboardingSpec) GetName() string

func (*OnboardingSpec) GetRole

func (x *OnboardingSpec) GetRole() v1.MembershipRole

func (*OnboardingSpec) ProtoMessage

func (*OnboardingSpec) ProtoMessage()

func (*OnboardingSpec) ProtoReflect

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

func (*OnboardingSpec) Reset

func (x *OnboardingSpec) Reset()

func (*OnboardingSpec) String

func (x *OnboardingSpec) String() string

Jump to

Keyboard shortcuts

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