-
Notifications
You must be signed in to change notification settings - Fork 111
/
config_request.pb.a2svc.go
51 lines (42 loc) · 1.48 KB
/
config_request.pb.a2svc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Code generated by protoc-gen-a2config. DO NOT EDIT.
// source: config/workflow_nginx/config_request.proto
package workflow_nginx
import (
a2conf "github.com/chef/automate/components/automate-grpc/protoc-gen-a2-config/api/a2conf"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
)
// ServiceName returns the name of the service this config belongs to
func (m *ConfigRequest) ServiceName() string {
return "automate-workflow-nginx"
}
// BindPort sets the port tagged with the given name
func (m *ConfigRequest) BindPort(name string, value uint16) error {
switch name {
default:
return a2conf.ErrPortNotFound
}
return nil
}
// ListPorts lists all the ports exposed by the config
func (m *ConfigRequest) ListPorts() []a2conf.PortInfo {
return []a2conf.PortInfo{}
}
// GetPort gets the port tagged with the given name. If the value is not set, it returns 0.
func (m *ConfigRequest) GetPort(name string) (uint16, error) {
switch name {
default:
return 0, a2conf.ErrPortNotFound
}
}
// ListSecrets lists all the secrets exposed by the config
func (m *ConfigRequest) ListSecrets() []a2conf.SecretInfo {
return []a2conf.SecretInfo{}
}
// GetSecret gets a secret by name. Returns nil if it is not set
func (m *ConfigRequest) GetSecret(name string) *wrappers.StringValue {
return nil
}
// SetSecret sets a secret by name. Returns ErrSecretNotFound if the secret does not exist
func (m *ConfigRequest) SetSecret(name string, value *wrappers.StringValue) error {
return a2conf.ErrSecretNotFound
}