a2conf

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Port = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.FieldOptions)(nil),
	ExtensionType: (*Port)(nil),
	Field:         51000,
	Name:          "chef.automate.api.port",
	Tag:           "bytes,51000,opt,name=port",
	Filename:      "components/automate-grpc/protoc-gen-a2-config/api/a2conf/annotations.proto",
}
View Source
var E_ServiceConfig = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MessageOptions)(nil),
	ExtensionType: (*ServiceConfig)(nil),
	Field:         51000,
	Name:          "chef.automate.api.service_config",
	Tag:           "bytes,51000,opt,name=service_config,json=serviceConfig",
	Filename:      "components/automate-grpc/protoc-gen-a2-config/api/a2conf/annotations.proto",
}
View Source
var ErrPortNotFound = errors.New("port not found")

Functions

func IsErrPortNotFound

func IsErrPortNotFound(err error) bool

Types

type A2ServiceConfig

type A2ServiceConfig interface {
	PortBind
	ServiceName() string
}

type Port

type Port struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Default              int32    `protobuf:"varint,2,opt,name=default,proto3" json:"default,omitempty"`
	Protocol             string   `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Port) Descriptor

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

func (*Port) GetDefault

func (m *Port) GetDefault() int32

func (*Port) GetName

func (m *Port) GetName() string

func (*Port) GetProtocol

func (m *Port) GetProtocol() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) Reset

func (m *Port) Reset()

func (*Port) String

func (m *Port) String() string

func (*Port) XXX_DiscardUnknown

func (m *Port) XXX_DiscardUnknown()

func (*Port) XXX_Marshal

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

func (*Port) XXX_Merge

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

func (*Port) XXX_Size

func (m *Port) XXX_Size() int

func (*Port) XXX_Unmarshal

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

type PortBind

type PortBind interface {
	BindPort(name string, value uint16) error
	ListPorts() []PortInfo
	GetPort(name string, value uint16) (uint16, error)
}

type PortInfo

type PortInfo struct {
	Name     string
	Default  uint16
	Protocol string
}

PortInfo describes a bindable port

type ServiceConfig

type ServiceConfig struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceConfig) Descriptor

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

func (*ServiceConfig) GetName

func (m *ServiceConfig) GetName() string

func (*ServiceConfig) ProtoMessage

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) Reset

func (m *ServiceConfig) Reset()

func (*ServiceConfig) String

func (m *ServiceConfig) String() string

func (*ServiceConfig) XXX_DiscardUnknown

func (m *ServiceConfig) XXX_DiscardUnknown()

func (*ServiceConfig) XXX_Marshal

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

func (*ServiceConfig) XXX_Merge

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

func (*ServiceConfig) XXX_Size

func (m *ServiceConfig) XXX_Size() int

func (*ServiceConfig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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