notifications

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigRequest

type ConfigRequest struct {
	V1                   *ConfigRequest_V1 `protobuf:"bytes,3,opt,name=v1,proto3" json:"v1,omitempty" toml:"v1,omitempty" mapstructure:"v1,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte            `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32             `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func DefaultConfigRequest

func DefaultConfigRequest() *ConfigRequest

DefaultConfigRequest returns a new instance of ConfigRequest with default values.

func NewConfigRequest

func NewConfigRequest() *ConfigRequest

NewConfigRequest returns a new instance of ConfigRequest with zero values.

func (*ConfigRequest) BindPort

func (m *ConfigRequest) BindPort(name string, value uint16) error

BindPort sets the port tagged with the given name

func (*ConfigRequest) Descriptor

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

func (*ConfigRequest) GetPort

func (m *ConfigRequest) GetPort(name string, value uint16) (uint16, error)

GetPort gets the port tagged with the given name. If the value is not set, it returns 0.

func (*ConfigRequest) GetV1

func (m *ConfigRequest) GetV1() *ConfigRequest_V1

func (*ConfigRequest) ListPorts

func (m *ConfigRequest) ListPorts() []a2conf.PortInfo

ListPorts lists all the ports exposed by the config

func (*ConfigRequest) PrepareSystemConfig

func (c *ConfigRequest) PrepareSystemConfig(creds *config.TLSCredentials) (config.PreparedSystemConfig, error)

PrepareSystemConfig returns a system configuration that can be used to start the service.

func (*ConfigRequest) ProtoMessage

func (*ConfigRequest) ProtoMessage()

func (*ConfigRequest) Reset

func (m *ConfigRequest) Reset()

func (*ConfigRequest) ServiceName

func (m *ConfigRequest) ServiceName() string

ServiceName returns the name of the service this config belongs to

func (*ConfigRequest) SetGlobalConfig

func (c *ConfigRequest) SetGlobalConfig(g *config.GlobalConfig)

SetGlobalConfig imports settings from the global configuration

func (*ConfigRequest) String

func (m *ConfigRequest) String() string

func (*ConfigRequest) Validate

func (c *ConfigRequest) Validate() error

Validate validates that the config is sufficient to start the Service and returns true.

func (*ConfigRequest) XXX_DiscardUnknown

func (m *ConfigRequest) XXX_DiscardUnknown()

func (*ConfigRequest) XXX_Marshal

func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest) XXX_Merge

func (dst *ConfigRequest) XXX_Merge(src proto.Message)

func (*ConfigRequest) XXX_Size

func (m *ConfigRequest) XXX_Size() int

func (*ConfigRequest) XXX_Unmarshal

func (m *ConfigRequest) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1

type ConfigRequest_V1 struct {
	Sys                  *ConfigRequest_V1_System  `protobuf:"bytes,1,opt,name=sys,proto3" json:"sys,omitempty" toml:"sys,omitempty" mapstructure:"sys,omitempty"`
	Svc                  *ConfigRequest_V1_Service `protobuf:"bytes,2,opt,name=svc,proto3" json:"svc,omitempty" toml:"svc,omitempty" mapstructure:"svc,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte                    `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                     `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1) Descriptor

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

func (*ConfigRequest_V1) GetSvc

func (*ConfigRequest_V1) GetSys

func (*ConfigRequest_V1) ProtoMessage

func (*ConfigRequest_V1) ProtoMessage()

func (*ConfigRequest_V1) Reset

func (m *ConfigRequest_V1) Reset()

func (*ConfigRequest_V1) String

func (m *ConfigRequest_V1) String() string

func (*ConfigRequest_V1) XXX_DiscardUnknown

func (m *ConfigRequest_V1) XXX_DiscardUnknown()

func (*ConfigRequest_V1) XXX_Marshal

func (m *ConfigRequest_V1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1) XXX_Merge

func (dst *ConfigRequest_V1) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1) XXX_Size

func (m *ConfigRequest_V1) XXX_Size() int

func (*ConfigRequest_V1) XXX_Unmarshal

func (m *ConfigRequest_V1) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_Service

type ConfigRequest_V1_Service struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_Service) Descriptor

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

func (*ConfigRequest_V1_Service) ProtoMessage

func (*ConfigRequest_V1_Service) ProtoMessage()

func (*ConfigRequest_V1_Service) Reset

func (m *ConfigRequest_V1_Service) Reset()

func (*ConfigRequest_V1_Service) String

func (m *ConfigRequest_V1_Service) String() string

func (*ConfigRequest_V1_Service) XXX_DiscardUnknown

func (m *ConfigRequest_V1_Service) XXX_DiscardUnknown()

func (*ConfigRequest_V1_Service) XXX_Marshal

func (m *ConfigRequest_V1_Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_Service) XXX_Merge

func (dst *ConfigRequest_V1_Service) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_Service) XXX_Size

func (m *ConfigRequest_V1_Service) XXX_Size() int

func (*ConfigRequest_V1_Service) XXX_Unmarshal

func (m *ConfigRequest_V1_Service) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_System

type ConfigRequest_V1_System struct {
	Mlsa                 *shared.Mlsa                       `protobuf:"bytes,1,opt,name=mlsa,proto3" json:"mlsa,omitempty" toml:"mlsa,omitempty" mapstructure:"mlsa,omitempty"`
	Service              *ConfigRequest_V1_System_Service   `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty" toml:"service,omitempty" mapstructure:"service,omitempty"`
	Storage              *ConfigRequest_V1_System_Storage   `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty" toml:"storage,omitempty" mapstructure:"storage,omitempty"`
	Cache                *ConfigRequest_V1_System_Cache     `protobuf:"bytes,4,opt,name=cache,proto3" json:"cache,omitempty" toml:"cache,omitempty" mapstructure:"cache,omitempty"`
	Tls                  *shared.TLSCredentials             `protobuf:"bytes,5,opt,name=tls,proto3" json:"tls,omitempty" toml:"tls,omitempty" mapstructure:"tls,omitempty"`
	Proxy                *shared.Proxy                      `protobuf:"bytes,6,opt,name=proxy,proto3" json:"proxy,omitempty" toml:"proxy,omitempty" mapstructure:"proxy,omitempty"`
	Migration            *ConfigRequest_V1_System_Migration `` /* 133-byte string literal not displayed */
	Log                  *ConfigRequest_V1_System_Log       `protobuf:"bytes,8,opt,name=log,proto3" json:"log,omitempty" toml:"log,omitempty" mapstructure:"log,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte                             `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                              `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_System) Descriptor

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

func (*ConfigRequest_V1_System) GetCache

func (*ConfigRequest_V1_System) GetLog

func (*ConfigRequest_V1_System) GetMigration

func (*ConfigRequest_V1_System) GetMlsa

func (m *ConfigRequest_V1_System) GetMlsa() *shared.Mlsa

func (*ConfigRequest_V1_System) GetProxy

func (m *ConfigRequest_V1_System) GetProxy() *shared.Proxy

func (*ConfigRequest_V1_System) GetService

func (*ConfigRequest_V1_System) GetStorage

func (*ConfigRequest_V1_System) GetTls

func (*ConfigRequest_V1_System) ProtoMessage

func (*ConfigRequest_V1_System) ProtoMessage()

func (*ConfigRequest_V1_System) Reset

func (m *ConfigRequest_V1_System) Reset()

func (*ConfigRequest_V1_System) String

func (m *ConfigRequest_V1_System) String() string

func (*ConfigRequest_V1_System) XXX_DiscardUnknown

func (m *ConfigRequest_V1_System) XXX_DiscardUnknown()

func (*ConfigRequest_V1_System) XXX_Marshal

func (m *ConfigRequest_V1_System) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_System) XXX_Merge

func (dst *ConfigRequest_V1_System) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_System) XXX_Size

func (m *ConfigRequest_V1_System) XXX_Size() int

func (*ConfigRequest_V1_System) XXX_Unmarshal

func (m *ConfigRequest_V1_System) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_System_Cache

type ConfigRequest_V1_System_Cache struct {
	EventRuleTimeoutMs   *wrappers.Int64Value `` /* 205-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte               `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_System_Cache) Descriptor

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

func (*ConfigRequest_V1_System_Cache) GetEventRuleTimeoutMs

func (m *ConfigRequest_V1_System_Cache) GetEventRuleTimeoutMs() *wrappers.Int64Value

func (*ConfigRequest_V1_System_Cache) ProtoMessage

func (*ConfigRequest_V1_System_Cache) ProtoMessage()

func (*ConfigRequest_V1_System_Cache) Reset

func (m *ConfigRequest_V1_System_Cache) Reset()

func (*ConfigRequest_V1_System_Cache) String

func (*ConfigRequest_V1_System_Cache) XXX_DiscardUnknown

func (m *ConfigRequest_V1_System_Cache) XXX_DiscardUnknown()

func (*ConfigRequest_V1_System_Cache) XXX_Marshal

func (m *ConfigRequest_V1_System_Cache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_System_Cache) XXX_Merge

func (dst *ConfigRequest_V1_System_Cache) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_System_Cache) XXX_Size

func (m *ConfigRequest_V1_System_Cache) XXX_Size() int

func (*ConfigRequest_V1_System_Cache) XXX_Unmarshal

func (m *ConfigRequest_V1_System_Cache) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_System_Log

type ConfigRequest_V1_System_Log struct {
	Level                *wrappers.StringValue `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty" toml:"level,omitempty" mapstructure:"level,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte                `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                 `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_System_Log) Descriptor

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

func (*ConfigRequest_V1_System_Log) GetLevel

func (*ConfigRequest_V1_System_Log) ProtoMessage

func (*ConfigRequest_V1_System_Log) ProtoMessage()

func (*ConfigRequest_V1_System_Log) Reset

func (m *ConfigRequest_V1_System_Log) Reset()

func (*ConfigRequest_V1_System_Log) String

func (m *ConfigRequest_V1_System_Log) String() string

func (*ConfigRequest_V1_System_Log) XXX_DiscardUnknown

func (m *ConfigRequest_V1_System_Log) XXX_DiscardUnknown()

func (*ConfigRequest_V1_System_Log) XXX_Marshal

func (m *ConfigRequest_V1_System_Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_System_Log) XXX_Merge

func (dst *ConfigRequest_V1_System_Log) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_System_Log) XXX_Size

func (m *ConfigRequest_V1_System_Log) XXX_Size() int

func (*ConfigRequest_V1_System_Log) XXX_Unmarshal

func (m *ConfigRequest_V1_System_Log) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_System_Migration

type ConfigRequest_V1_System_Migration struct {
	RuleStoreFile *wrappers.StringValue `` // Deprecated: Do not use.
	/* 176-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_System_Migration) Descriptor

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

func (*ConfigRequest_V1_System_Migration) GetRuleStoreFile deprecated

Deprecated: Do not use.

func (*ConfigRequest_V1_System_Migration) ProtoMessage

func (*ConfigRequest_V1_System_Migration) ProtoMessage()

func (*ConfigRequest_V1_System_Migration) Reset

func (*ConfigRequest_V1_System_Migration) String

func (*ConfigRequest_V1_System_Migration) XXX_DiscardUnknown

func (m *ConfigRequest_V1_System_Migration) XXX_DiscardUnknown()

func (*ConfigRequest_V1_System_Migration) XXX_Marshal

func (m *ConfigRequest_V1_System_Migration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_System_Migration) XXX_Merge

func (dst *ConfigRequest_V1_System_Migration) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_System_Migration) XXX_Size

func (m *ConfigRequest_V1_System_Migration) XXX_Size() int

func (*ConfigRequest_V1_System_Migration) XXX_Unmarshal

func (m *ConfigRequest_V1_System_Migration) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_System_Service

type ConfigRequest_V1_System_Service struct {
	ExternalFqdn         *wrappers.StringValue `` /* 167-byte string literal not displayed */
	Host                 *wrappers.StringValue `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty" toml:"host,omitempty" mapstructure:"host,omitempty"`
	Port                 *wrappers.Int32Value  `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty" toml:"port,omitempty" mapstructure:"port,omitempty"`
	DedupeWindowSeconds  *wrappers.Int32Value  `` /* 206-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}              `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte                `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                 `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_System_Service) Descriptor

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

func (*ConfigRequest_V1_System_Service) GetDedupeWindowSeconds

func (m *ConfigRequest_V1_System_Service) GetDedupeWindowSeconds() *wrappers.Int32Value

func (*ConfigRequest_V1_System_Service) GetExternalFqdn

func (*ConfigRequest_V1_System_Service) GetHost

func (*ConfigRequest_V1_System_Service) GetPort

func (*ConfigRequest_V1_System_Service) ProtoMessage

func (*ConfigRequest_V1_System_Service) ProtoMessage()

func (*ConfigRequest_V1_System_Service) Reset

func (*ConfigRequest_V1_System_Service) String

func (*ConfigRequest_V1_System_Service) XXX_DiscardUnknown

func (m *ConfigRequest_V1_System_Service) XXX_DiscardUnknown()

func (*ConfigRequest_V1_System_Service) XXX_Marshal

func (m *ConfigRequest_V1_System_Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_System_Service) XXX_Merge

func (dst *ConfigRequest_V1_System_Service) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_System_Service) XXX_Size

func (m *ConfigRequest_V1_System_Service) XXX_Size() int

func (*ConfigRequest_V1_System_Service) XXX_Unmarshal

func (m *ConfigRequest_V1_System_Service) XXX_Unmarshal(b []byte) error

type ConfigRequest_V1_System_Storage

type ConfigRequest_V1_System_Storage struct {
	User                 *wrappers.StringValue `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" toml:"user,omitempty" mapstructure:"user,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte                `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                 `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*ConfigRequest_V1_System_Storage) Descriptor

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

func (*ConfigRequest_V1_System_Storage) GetUser

func (*ConfigRequest_V1_System_Storage) ProtoMessage

func (*ConfigRequest_V1_System_Storage) ProtoMessage()

func (*ConfigRequest_V1_System_Storage) Reset

func (*ConfigRequest_V1_System_Storage) String

func (*ConfigRequest_V1_System_Storage) XXX_DiscardUnknown

func (m *ConfigRequest_V1_System_Storage) XXX_DiscardUnknown()

func (*ConfigRequest_V1_System_Storage) XXX_Marshal

func (m *ConfigRequest_V1_System_Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigRequest_V1_System_Storage) XXX_Merge

func (dst *ConfigRequest_V1_System_Storage) XXX_Merge(src proto.Message)

func (*ConfigRequest_V1_System_Storage) XXX_Size

func (m *ConfigRequest_V1_System_Storage) XXX_Size() int

func (*ConfigRequest_V1_System_Storage) XXX_Unmarshal

func (m *ConfigRequest_V1_System_Storage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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