protoconf_agent_config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AgentConfig_StoreType_name = map[int32]string{
		0: "consul",
		1: "etcd",
		2: "zookeeper",
		3: "file",
		4: "configmaps",
	}
	AgentConfig_StoreType_value = map[string]int32{
		"consul":     0,
		"etcd":       1,
		"zookeeper":  2,
		"file":       3,
		"configmaps": 4,
	}
)

Enum value maps for AgentConfig_StoreType.

View Source
var (
	AgentConfig_LogLevel_name = map[int32]string{
		0:  "INFO",
		-4: "DEBUG",
		4:  "WARN",
		8:  "ERROR",
	}
	AgentConfig_LogLevel_value = map[string]int32{
		"INFO":  0,
		"DEBUG": -4,
		"WARN":  4,
		"ERROR": 8,
	}
)

Enum value maps for AgentConfig_LogLevel.

View Source
var File_agent_config_v1_agent_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {

	// Configures the address which the gRPC server will bind to.
	// For example: "0.0.0.0:4300"
	GrpcAddress string `protobuf:"bytes,1,opt,name=grpc_address,json=grpc-address,proto3" json:"grpc_address,omitempty"`
	// Configures the address which the HTTP admin server will bind to.
	// For example: "0.0.0.0:4390"
	// This admin server return metrics under `/metrics`
	HttpAddress   string                 `protobuf:"bytes,2,opt,name=http_address,json=http-address,proto3" json:"http_address,omitempty"`
	DevRoot       string                 `protobuf:"bytes,3,opt,name=dev_root,json=dev,proto3" json:"dev_root,omitempty"`
	Store         AgentConfig_StoreType  `protobuf:"varint,4,opt,name=store,proto3,enum=protoconf.agent.config.v1.AgentConfig_StoreType" json:"store,omitempty"`
	Servers       []string               `protobuf:"bytes,5,rep,name=servers,json=store-address,proto3" json:"servers,omitempty"`
	Prefix        string                 `protobuf:"bytes,6,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Insecure      bool                   `protobuf:"varint,7,opt,name=insecure,proto3" json:"insecure,omitempty"`
	TlsConfig     *AgentConfig_TLSConfig `protobuf:"bytes,8,opt,name=tls_config,json=tls-config,proto3" json:"tls_config,omitempty"`
	StoreTls      *AgentConfig_TLSConfig `protobuf:"bytes,9,opt,name=store_tls,json=store-tls,proto3" json:"store_tls,omitempty"`
	LogAsJson     bool                   `protobuf:"varint,10,opt,name=log_as_json,json=log-as-json,proto3" json:"log_as_json,omitempty"`
	LogLevel      AgentConfig_LogLevel   `` /* 140-byte string literal not displayed */
	LogSource     bool                   `protobuf:"varint,12,opt,name=log_source,json=log-source,proto3" json:"log_source,omitempty"`
	ChannelName   string                 `protobuf:"bytes,13,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	AgentId       string                 `protobuf:"bytes,14,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	Namespace     string                 `protobuf:"bytes,15,opt,name=namespace,proto3" json:"namespace,omitempty"`
	EnableRollout bool                   `protobuf:"varint,16,opt,name=enable_rollout,json=enable-rollout,proto3" json:"enable_rollout,omitempty"`
	// contains filtered or unexported fields
}

Protoconf agent configuration guide.

func (*AgentConfig) Descriptor deprecated

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

Deprecated: Use AgentConfig.ProtoReflect.Descriptor instead.

func (*AgentConfig) GetAgentId

func (x *AgentConfig) GetAgentId() string

func (*AgentConfig) GetChannelName

func (x *AgentConfig) GetChannelName() string

func (*AgentConfig) GetDevRoot

func (x *AgentConfig) GetDevRoot() string

func (*AgentConfig) GetEnableRollout

func (x *AgentConfig) GetEnableRollout() bool

func (*AgentConfig) GetGrpcAddress

func (x *AgentConfig) GetGrpcAddress() string

func (*AgentConfig) GetHttpAddress

func (x *AgentConfig) GetHttpAddress() string

func (*AgentConfig) GetInsecure

func (x *AgentConfig) GetInsecure() bool

func (*AgentConfig) GetLogAsJson

func (x *AgentConfig) GetLogAsJson() bool

func (*AgentConfig) GetLogLevel

func (x *AgentConfig) GetLogLevel() AgentConfig_LogLevel

func (*AgentConfig) GetLogSource

func (x *AgentConfig) GetLogSource() bool

func (*AgentConfig) GetNamespace

func (x *AgentConfig) GetNamespace() string

func (*AgentConfig) GetPrefix

func (x *AgentConfig) GetPrefix() string

func (*AgentConfig) GetServers

func (x *AgentConfig) GetServers() []string

func (*AgentConfig) GetStore

func (x *AgentConfig) GetStore() AgentConfig_StoreType

func (*AgentConfig) GetStoreTls

func (x *AgentConfig) GetStoreTls() *AgentConfig_TLSConfig

func (*AgentConfig) GetTlsConfig

func (x *AgentConfig) GetTlsConfig() *AgentConfig_TLSConfig

func (*AgentConfig) ProtoMessage

func (*AgentConfig) ProtoMessage()

func (*AgentConfig) ProtoReflect

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

func (*AgentConfig) Reset

func (x *AgentConfig) Reset()

func (*AgentConfig) String

func (x *AgentConfig) String() string

type AgentConfig_LogLevel

type AgentConfig_LogLevel int32
const (
	AgentConfig_INFO  AgentConfig_LogLevel = 0
	AgentConfig_DEBUG AgentConfig_LogLevel = -4
	AgentConfig_WARN  AgentConfig_LogLevel = 4
	AgentConfig_ERROR AgentConfig_LogLevel = 8
)

func (AgentConfig_LogLevel) Descriptor

func (AgentConfig_LogLevel) Enum

func (AgentConfig_LogLevel) EnumDescriptor deprecated

func (AgentConfig_LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use AgentConfig_LogLevel.Descriptor instead.

func (AgentConfig_LogLevel) Number

func (AgentConfig_LogLevel) String

func (x AgentConfig_LogLevel) String() string

func (AgentConfig_LogLevel) Type

type AgentConfig_StoreType

type AgentConfig_StoreType int32
const (
	AgentConfig_consul     AgentConfig_StoreType = 0
	AgentConfig_etcd       AgentConfig_StoreType = 1
	AgentConfig_zookeeper  AgentConfig_StoreType = 2
	AgentConfig_file       AgentConfig_StoreType = 3
	AgentConfig_configmaps AgentConfig_StoreType = 4
)

func (AgentConfig_StoreType) Descriptor

func (AgentConfig_StoreType) Enum

func (AgentConfig_StoreType) EnumDescriptor deprecated

func (AgentConfig_StoreType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AgentConfig_StoreType.Descriptor instead.

func (AgentConfig_StoreType) Number

func (AgentConfig_StoreType) String

func (x AgentConfig_StoreType) String() string

func (AgentConfig_StoreType) Type

type AgentConfig_TLSConfig

type AgentConfig_TLSConfig struct {

	// Types that are assignable to Key:
	//	*AgentConfig_TLSConfig_KeyText
	//	*AgentConfig_TLSConfig_KeyFile
	Key isAgentConfig_TLSConfig_Key `protobuf_oneof:"key"`
	// Types that are assignable to Cert:
	//	*AgentConfig_TLSConfig_CertText
	//	*AgentConfig_TLSConfig_CertFile
	Cert isAgentConfig_TLSConfig_Cert `protobuf_oneof:"cert"`
	// Types that are assignable to Ca:
	//	*AgentConfig_TLSConfig_CaText
	//	*AgentConfig_TLSConfig_CaFile
	Ca isAgentConfig_TLSConfig_Ca `protobuf_oneof:"ca"`
	// contains filtered or unexported fields
}

func (*AgentConfig_TLSConfig) Descriptor deprecated

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

Deprecated: Use AgentConfig_TLSConfig.ProtoReflect.Descriptor instead.

func (*AgentConfig_TLSConfig) GetCa

func (m *AgentConfig_TLSConfig) GetCa() isAgentConfig_TLSConfig_Ca

func (*AgentConfig_TLSConfig) GetCaFile

func (x *AgentConfig_TLSConfig) GetCaFile() string

func (*AgentConfig_TLSConfig) GetCaText

func (x *AgentConfig_TLSConfig) GetCaText() string

func (*AgentConfig_TLSConfig) GetCert

func (m *AgentConfig_TLSConfig) GetCert() isAgentConfig_TLSConfig_Cert

func (*AgentConfig_TLSConfig) GetCertFile

func (x *AgentConfig_TLSConfig) GetCertFile() string

func (*AgentConfig_TLSConfig) GetCertText

func (x *AgentConfig_TLSConfig) GetCertText() string

func (*AgentConfig_TLSConfig) GetKey

func (m *AgentConfig_TLSConfig) GetKey() isAgentConfig_TLSConfig_Key

func (*AgentConfig_TLSConfig) GetKeyFile

func (x *AgentConfig_TLSConfig) GetKeyFile() string

func (*AgentConfig_TLSConfig) GetKeyText

func (x *AgentConfig_TLSConfig) GetKeyText() string

func (*AgentConfig_TLSConfig) ProtoMessage

func (*AgentConfig_TLSConfig) ProtoMessage()

func (*AgentConfig_TLSConfig) ProtoReflect

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

func (*AgentConfig_TLSConfig) Reset

func (x *AgentConfig_TLSConfig) Reset()

func (*AgentConfig_TLSConfig) String

func (x *AgentConfig_TLSConfig) String() string

type AgentConfig_TLSConfig_CaFile

type AgentConfig_TLSConfig_CaFile struct {
	CaFile string `protobuf:"bytes,6,opt,name=ca_file,json=ca-file,proto3,oneof"`
}

type AgentConfig_TLSConfig_CaText

type AgentConfig_TLSConfig_CaText struct {
	CaText string `protobuf:"bytes,5,opt,name=ca_text,json=ca-text,proto3,oneof"`
}

type AgentConfig_TLSConfig_CertFile

type AgentConfig_TLSConfig_CertFile struct {
	CertFile string `protobuf:"bytes,4,opt,name=cert_file,json=cert-file,proto3,oneof"`
}

type AgentConfig_TLSConfig_CertText

type AgentConfig_TLSConfig_CertText struct {
	CertText string `protobuf:"bytes,3,opt,name=cert_text,json=cert-text,proto3,oneof"`
}

type AgentConfig_TLSConfig_KeyFile

type AgentConfig_TLSConfig_KeyFile struct {
	KeyFile string `protobuf:"bytes,2,opt,name=key_file,json=key-file,proto3,oneof"`
}

type AgentConfig_TLSConfig_KeyText

type AgentConfig_TLSConfig_KeyText struct {
	KeyText string `protobuf:"bytes,1,opt,name=key_text,json=key-text,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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