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 descriptorpb.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 descriptorpb.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 IsErrSecretNotFound ¶
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) GetDefault ¶
func (*Port) GetProtocol ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
type SecretBind ¶
type SecretBind interface { ListSecrets() []SecretInfo GetSecret(name string) *wrappers.StringValue SetSecret(name string, value *wrappers.StringValue) error }
type SecretInfo ¶
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
Click to show internal directories.
Click to hide internal directories.