a2conf

package
v0.0.0-...-6794c67 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional chef.automate.api.Port port = 51000;
	E_Port = &file_automate_grpc_protoc_gen_a2_config_api_a2conf_annotations_proto_extTypes[0]
	// optional chef.automate.api.Secret secret = 51001;
	E_Secret = &file_automate_grpc_protoc_gen_a2_config_api_a2conf_annotations_proto_extTypes[1]
)

Extension fields to descriptor.FieldOptions.

View Source
var (
	// optional chef.automate.api.ServiceConfig service_config = 51000;
	E_ServiceConfig = &file_automate_grpc_protoc_gen_a2_config_api_a2conf_annotations_proto_extTypes[2]
)

Extension fields to descriptor.MessageOptions.

View Source
var ErrPortNotFound = errors.New("port not found")
View Source
var ErrSecretNotFound = errors.New("secret not found")
View Source
var File_automate_grpc_protoc_gen_a2_config_api_a2conf_annotations_proto protoreflect.FileDescriptor
View Source
var File_automate_grpc_protoc_gen_a2_config_api_a2conf_port_proto protoreflect.FileDescriptor
View Source
var File_automate_grpc_protoc_gen_a2_config_api_a2conf_secret_proto protoreflect.FileDescriptor

Functions

func IsErrPortNotFound

func IsErrPortNotFound(err error) bool

func IsErrSecretNotFound

func IsErrSecretNotFound(err error) bool

Types

type A2ServiceConfig

type A2ServiceConfig interface {
	PortBind
	SecretBind
	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"`
	// contains filtered or unexported fields
}

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetDefault

func (x *Port) GetDefault() int32

func (*Port) GetName

func (x *Port) GetName() string

func (*Port) GetProtocol

func (x *Port) GetProtocol() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type PortBind

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

type PortInfo

type PortInfo struct {
	Name     string
	Default  uint16
	Protocol string
}

PortInfo describes a bindable port

type Secret

type Secret struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Secret) Descriptor deprecated

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

Deprecated: Use Secret.ProtoReflect.Descriptor instead.

func (*Secret) GetName

func (x *Secret) GetName() string

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) ProtoReflect

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

func (*Secret) Reset

func (x *Secret) Reset()

func (*Secret) String

func (x *Secret) String() string

type SecretBind

type SecretBind interface {
	ListSecrets() []SecretInfo
	GetSecret(name string) *wrappers.StringValue
	SetSecret(name string, value *wrappers.StringValue) error
}

type SecretInfo

type SecretInfo struct {
	Name                string
	EnvironmentVariable string
}

SecretInfo describes a bindable secret

type ServiceConfig

type ServiceConfig struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceConfig) Descriptor deprecated

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

Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.

func (*ServiceConfig) GetName

func (x *ServiceConfig) GetName() string

func (*ServiceConfig) ProtoMessage

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) ProtoReflect

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

func (*ServiceConfig) Reset

func (x *ServiceConfig) Reset()

func (*ServiceConfig) String

func (x *ServiceConfig) String() string

Jump to

Keyboard shortcuts

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