Documentation ¶
Overview ¶
Package applications is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterApplicationsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterApplicationsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationsServiceClient) error
- func RegisterApplicationsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterApplicationsServiceServer(s *grpc.Server, srv ApplicationsServiceServer)
- type ApplicationsServiceClient
- type ApplicationsServiceServer
- type HabService
- func (*HabService) Descriptor() ([]byte, []int)
- func (m *HabService) FullServiceGroupName() string
- func (m *HabService) GetApplication() string
- func (m *HabService) GetChannel() string
- func (m *HabService) GetEnvironment() string
- func (m *HabService) GetFqdn() string
- func (m *HabService) GetGroup() string
- func (m *HabService) GetHealthCheck() HealthStatus
- func (m *HabService) GetPkgIdent() *PackageIdent
- func (m *HabService) GetSite() string
- func (m *HabService) GetStatus() ServiceStatus
- func (m *HabService) GetSupervisorId() string
- func (*HabService) ProtoMessage()
- func (m *HabService) Reset()
- func (m *HabService) String() string
- func (m *HabService) XXX_DiscardUnknown()
- func (m *HabService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HabService) XXX_Merge(src proto.Message)
- func (m *HabService) XXX_Size() int
- func (m *HabService) XXX_Unmarshal(b []byte) error
- type HealthCounts
- func (*HealthCounts) Descriptor() ([]byte, []int)
- func (m *HealthCounts) GetCritical() int32
- func (m *HealthCounts) GetOk() int32
- func (m *HealthCounts) GetTotal() int32
- func (m *HealthCounts) GetUnknown() int32
- func (m *HealthCounts) GetWarning() int32
- func (*HealthCounts) ProtoMessage()
- func (m *HealthCounts) Reset()
- func (m *HealthCounts) String() string
- func (m *HealthCounts) XXX_DiscardUnknown()
- func (m *HealthCounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HealthCounts) XXX_Merge(src proto.Message)
- func (m *HealthCounts) XXX_Size() int
- func (m *HealthCounts) XXX_Unmarshal(b []byte) error
- type HealthStatus
- type PackageIdent
- func (*PackageIdent) Descriptor() ([]byte, []int)
- func (m *PackageIdent) GetName() string
- func (m *PackageIdent) GetOrigin() string
- func (m *PackageIdent) GetRelease() string
- func (m *PackageIdent) GetVersion() string
- func (*PackageIdent) ProtoMessage()
- func (m *PackageIdent) Reset()
- func (m *PackageIdent) String() string
- func (m *PackageIdent) XXX_DiscardUnknown()
- func (m *PackageIdent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PackageIdent) XXX_Merge(src proto.Message)
- func (m *PackageIdent) XXX_Size() int
- func (m *PackageIdent) XXX_Unmarshal(b []byte) error
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetApplication() string
- func (m *Service) GetChannel() string
- func (m *Service) GetEnvironment() string
- func (m *Service) GetFqdn() string
- func (m *Service) GetGroup() string
- func (m *Service) GetHealthCheck() HealthStatus
- func (m *Service) GetRelease() string
- func (m *Service) GetSite() string
- func (m *Service) GetStatus() ServiceStatus
- func (m *Service) GetSupervisorId() string
- func (*Service) ProtoMessage()
- func (m *Service) Reset()
- func (m *Service) String() string
- func (m *Service) XXX_DiscardUnknown()
- func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Service) XXX_Merge(src proto.Message)
- func (m *Service) XXX_Size() int
- func (m *Service) XXX_Unmarshal(b []byte) error
- type ServiceGroup
- func (*ServiceGroup) Descriptor() ([]byte, []int)
- func (m *ServiceGroup) GetHealthPercentage() int32
- func (m *ServiceGroup) GetId() string
- func (m *ServiceGroup) GetName() string
- func (m *ServiceGroup) GetRelease() string
- func (m *ServiceGroup) GetServicesHealthCounts() *HealthCounts
- func (m *ServiceGroup) GetStatus() HealthStatus
- func (*ServiceGroup) ProtoMessage()
- func (m *ServiceGroup) Reset()
- func (m *ServiceGroup) String() string
- func (m *ServiceGroup) XXX_DiscardUnknown()
- func (m *ServiceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServiceGroup) XXX_Merge(src proto.Message)
- func (m *ServiceGroup) XXX_Size() int
- func (m *ServiceGroup) XXX_Unmarshal(b []byte) error
- type ServiceGroups
- func (*ServiceGroups) Descriptor() ([]byte, []int)
- func (m *ServiceGroups) GetServiceGroups() []*ServiceGroup
- func (*ServiceGroups) ProtoMessage()
- func (m *ServiceGroups) Reset()
- func (m *ServiceGroups) String() string
- func (m *ServiceGroups) XXX_DiscardUnknown()
- func (m *ServiceGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServiceGroups) XXX_Merge(src proto.Message)
- func (m *ServiceGroups) XXX_Size() int
- func (m *ServiceGroups) XXX_Unmarshal(b []byte) error
- type ServiceGroupsHealthCountsReq
- func (*ServiceGroupsHealthCountsReq) Descriptor() ([]byte, []int)
- func (*ServiceGroupsHealthCountsReq) ProtoMessage()
- func (m *ServiceGroupsHealthCountsReq) Reset()
- func (m *ServiceGroupsHealthCountsReq) String() string
- func (m *ServiceGroupsHealthCountsReq) XXX_DiscardUnknown()
- func (m *ServiceGroupsHealthCountsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServiceGroupsHealthCountsReq) XXX_Merge(src proto.Message)
- func (m *ServiceGroupsHealthCountsReq) XXX_Size() int
- func (m *ServiceGroupsHealthCountsReq) XXX_Unmarshal(b []byte) error
- type ServiceGroupsReq
- func (*ServiceGroupsReq) Descriptor() ([]byte, []int)
- func (m *ServiceGroupsReq) GetFilter() []string
- func (m *ServiceGroupsReq) GetPagination() *query.Pagination
- func (m *ServiceGroupsReq) GetSorting() *query.Sorting
- func (*ServiceGroupsReq) ProtoMessage()
- func (m *ServiceGroupsReq) Reset()
- func (m *ServiceGroupsReq) String() string
- func (m *ServiceGroupsReq) XXX_DiscardUnknown()
- func (m *ServiceGroupsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServiceGroupsReq) XXX_Merge(src proto.Message)
- func (m *ServiceGroupsReq) XXX_Size() int
- func (m *ServiceGroupsReq) XXX_Unmarshal(b []byte) error
- type ServiceStatus
- type ServicesBySGReq
- func (*ServicesBySGReq) Descriptor() ([]byte, []int)
- func (m *ServicesBySGReq) GetHealth() string
- func (m *ServicesBySGReq) GetPagination() *query.Pagination
- func (m *ServicesBySGReq) GetServiceGroupId() int32
- func (m *ServicesBySGReq) GetSorting() *query.Sorting
- func (*ServicesBySGReq) ProtoMessage()
- func (m *ServicesBySGReq) Reset()
- func (m *ServicesBySGReq) String() string
- func (m *ServicesBySGReq) XXX_DiscardUnknown()
- func (m *ServicesBySGReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServicesBySGReq) XXX_Merge(src proto.Message)
- func (m *ServicesBySGReq) XXX_Size() int
- func (m *ServicesBySGReq) XXX_Unmarshal(b []byte) error
- type ServicesBySGRes
- func (*ServicesBySGRes) Descriptor() ([]byte, []int)
- func (m *ServicesBySGRes) GetGroup() string
- func (m *ServicesBySGRes) GetServices() []*Service
- func (m *ServicesBySGRes) GetServicesHealthCounts() *HealthCounts
- func (*ServicesBySGRes) ProtoMessage()
- func (m *ServicesBySGRes) Reset()
- func (m *ServicesBySGRes) String() string
- func (m *ServicesBySGRes) XXX_DiscardUnknown()
- func (m *ServicesBySGRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServicesBySGRes) XXX_Merge(src proto.Message)
- func (m *ServicesBySGRes) XXX_Size() int
- func (m *ServicesBySGRes) XXX_Unmarshal(b []byte) error
- type ServicesReq
- func (*ServicesReq) Descriptor() ([]byte, []int)
- func (m *ServicesReq) GetFilter() []string
- func (m *ServicesReq) GetPagination() *query.Pagination
- func (m *ServicesReq) GetSorting() *query.Sorting
- func (*ServicesReq) ProtoMessage()
- func (m *ServicesReq) Reset()
- func (m *ServicesReq) String() string
- func (m *ServicesReq) XXX_DiscardUnknown()
- func (m *ServicesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServicesReq) XXX_Merge(src proto.Message)
- func (m *ServicesReq) XXX_Size() int
- func (m *ServicesReq) XXX_Unmarshal(b []byte) error
- type ServicesRes
- func (*ServicesRes) Descriptor() ([]byte, []int)
- func (m *ServicesRes) GetServices() []*Service
- func (*ServicesRes) ProtoMessage()
- func (m *ServicesRes) Reset()
- func (m *ServicesRes) String() string
- func (m *ServicesRes) XXX_DiscardUnknown()
- func (m *ServicesRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServicesRes) XXX_Merge(src proto.Message)
- func (m *ServicesRes) XXX_Size() int
- func (m *ServicesRes) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var HealthStatus_name = map[int32]string{
0: "OK",
1: "WARNING",
2: "CRITICAL",
3: "UNKNOWN",
}
var HealthStatus_value = map[string]int32{
"OK": 0,
"WARNING": 1,
"CRITICAL": 2,
"UNKNOWN": 3,
}
var ServiceStatus_name = map[int32]string{
0: "RUNNING",
1: "INITIALIZING",
2: "DEPLOYING",
3: "DOWN",
}
var ServiceStatus_value = map[string]int32{
"RUNNING": 0,
"INITIALIZING": 1,
"DEPLOYING": 2,
"DOWN": 3,
}
Functions ¶
func RegisterApplicationsServiceHandler ¶
func RegisterApplicationsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterApplicationsServiceHandler registers the http handlers for service ApplicationsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterApplicationsServiceHandlerClient ¶
func RegisterApplicationsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationsServiceClient) error
RegisterApplicationsServiceHandlerClient registers the http handlers for service ApplicationsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApplicationsServiceClient" to call the correct interceptors.
func RegisterApplicationsServiceHandlerFromEndpoint ¶
func RegisterApplicationsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterApplicationsServiceHandlerFromEndpoint is same as RegisterApplicationsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterApplicationsServiceServer ¶
func RegisterApplicationsServiceServer(s *grpc.Server, srv ApplicationsServiceServer)
Types ¶
type ApplicationsServiceClient ¶
type ApplicationsServiceClient interface { GetServiceGroups(ctx context.Context, in *ServiceGroupsReq, opts ...grpc.CallOption) (*ServiceGroups, error) GetServiceGroupsHealthCounts(ctx context.Context, in *ServiceGroupsHealthCountsReq, opts ...grpc.CallOption) (*HealthCounts, error) GetServices(ctx context.Context, in *ServicesReq, opts ...grpc.CallOption) (*ServicesRes, error) GetServicesBySG(ctx context.Context, in *ServicesBySGReq, opts ...grpc.CallOption) (*ServicesBySGRes, error) GetVersion(ctx context.Context, in *version.VersionInfoRequest, opts ...grpc.CallOption) (*version.VersionInfo, error) }
ApplicationsServiceClient is the client API for ApplicationsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewApplicationsServiceClient ¶
func NewApplicationsServiceClient(cc *grpc.ClientConn) ApplicationsServiceClient
type ApplicationsServiceServer ¶
type ApplicationsServiceServer interface { GetServiceGroups(context.Context, *ServiceGroupsReq) (*ServiceGroups, error) GetServiceGroupsHealthCounts(context.Context, *ServiceGroupsHealthCountsReq) (*HealthCounts, error) GetServices(context.Context, *ServicesReq) (*ServicesRes, error) GetServicesBySG(context.Context, *ServicesBySGReq) (*ServicesBySGRes, error) GetVersion(context.Context, *version.VersionInfoRequest) (*version.VersionInfo, error) }
ApplicationsServiceServer is the server API for ApplicationsService service.
type HabService ¶
type HabService struct { // We currently don't know if habitat has a unique identifier so for now // we will generate this id internally inside our service // // UPDATE: @afiune a service itself doesn't have an ID but instead it composed // by something called "full qualified identifier" (FQID) that is the combination // of the package origin, name, version and timestamp (and in the future also the // target, which is not yet part of the FQID in habitat). Though, for us to // distinguish a service that is running in multiple instances, we will need the // Supervisor ID plus the origin and package name. // // That means that for us a unique Service is identified by: // // * supervisor_id // * pkg_origin // * pkg_name // // Not these two fields since they can change on every pkg release // * pkg_version // * pkg_release // // Potential considerations: // * package target (package built for linux/windows/etc) // * Do NOT use FQID to describe this message SupervisorId string `protobuf:"bytes,1,opt,name=supervisor_id,json=supervisorId,proto3" json:"supervisor_id,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` PkgIdent *PackageIdent `protobuf:"bytes,3,opt,name=pkg_ident,json=pkgIdent,proto3" json:"pkg_ident,omitempty"` HealthCheck HealthStatus `` /* 144-byte string literal not displayed */ Status ServiceStatus `protobuf:"varint,5,opt,name=status,proto3,enum=chef.automate.api.applications.ServiceStatus" json:"status,omitempty"` // @afiune These information will come as tags, once we have the data structure // we will have to redo these fields, for now we will assume they will be provided // as follows Application string `protobuf:"bytes,7,opt,name=application,proto3" json:"application,omitempty"` Environment string `protobuf:"bytes,8,opt,name=environment,proto3" json:"environment,omitempty"` // @afiune We need to figure out how the fqdn will be provided Fqdn string `protobuf:"bytes,9,opt,name=fqdn,proto3" json:"fqdn,omitempty"` Channel string `protobuf:"bytes,10,opt,name=channel,proto3" json:"channel,omitempty"` // site may not be provided by habitat so let's not use a reserved number for it. Site string `protobuf:"bytes,17,opt,name=site,proto3" json:"site,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A HabService message is the representation of one single service in habitat
func (*HabService) Descriptor ¶
func (*HabService) Descriptor() ([]byte, []int)
func (*HabService) FullServiceGroupName ¶
func (m *HabService) FullServiceGroupName() string
func (*HabService) GetApplication ¶
func (m *HabService) GetApplication() string
func (*HabService) GetChannel ¶
func (m *HabService) GetChannel() string
func (*HabService) GetEnvironment ¶
func (m *HabService) GetEnvironment() string
func (*HabService) GetFqdn ¶
func (m *HabService) GetFqdn() string
func (*HabService) GetGroup ¶
func (m *HabService) GetGroup() string
func (*HabService) GetHealthCheck ¶
func (m *HabService) GetHealthCheck() HealthStatus
func (*HabService) GetPkgIdent ¶
func (m *HabService) GetPkgIdent() *PackageIdent
func (*HabService) GetSite ¶
func (m *HabService) GetSite() string
func (*HabService) GetStatus ¶
func (m *HabService) GetStatus() ServiceStatus
func (*HabService) GetSupervisorId ¶
func (m *HabService) GetSupervisorId() string
func (*HabService) ProtoMessage ¶
func (*HabService) ProtoMessage()
func (*HabService) Reset ¶
func (m *HabService) Reset()
func (*HabService) String ¶
func (m *HabService) String() string
func (*HabService) XXX_DiscardUnknown ¶
func (m *HabService) XXX_DiscardUnknown()
func (*HabService) XXX_Marshal ¶
func (m *HabService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HabService) XXX_Merge ¶
func (dst *HabService) XXX_Merge(src proto.Message)
func (*HabService) XXX_Size ¶
func (m *HabService) XXX_Size() int
func (*HabService) XXX_Unmarshal ¶
func (m *HabService) XXX_Unmarshal(b []byte) error
type HealthCounts ¶
type HealthCounts struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Ok int32 `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` Warning int32 `protobuf:"varint,3,opt,name=warning,proto3" json:"warning,omitempty"` Critical int32 `protobuf:"varint,4,opt,name=critical,proto3" json:"critical,omitempty"` Unknown int32 `protobuf:"varint,5,opt,name=unknown,proto3" json:"unknown,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthCounts) Descriptor ¶
func (*HealthCounts) Descriptor() ([]byte, []int)
func (*HealthCounts) GetCritical ¶
func (m *HealthCounts) GetCritical() int32
func (*HealthCounts) GetOk ¶
func (m *HealthCounts) GetOk() int32
func (*HealthCounts) GetTotal ¶
func (m *HealthCounts) GetTotal() int32
func (*HealthCounts) GetUnknown ¶
func (m *HealthCounts) GetUnknown() int32
func (*HealthCounts) GetWarning ¶
func (m *HealthCounts) GetWarning() int32
func (*HealthCounts) ProtoMessage ¶
func (*HealthCounts) ProtoMessage()
func (*HealthCounts) Reset ¶
func (m *HealthCounts) Reset()
func (*HealthCounts) String ¶
func (m *HealthCounts) String() string
func (*HealthCounts) XXX_DiscardUnknown ¶
func (m *HealthCounts) XXX_DiscardUnknown()
func (*HealthCounts) XXX_Marshal ¶
func (m *HealthCounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCounts) XXX_Merge ¶
func (dst *HealthCounts) XXX_Merge(src proto.Message)
func (*HealthCounts) XXX_Size ¶
func (m *HealthCounts) XXX_Size() int
func (*HealthCounts) XXX_Unmarshal ¶
func (m *HealthCounts) XXX_Unmarshal(b []byte) error
type HealthStatus ¶
type HealthStatus int32
The HealthStatus enum matches the habitat implementation for health-check status: => https://www.habitat.sh/docs/reference/#health-check
const ( HealthStatus_OK HealthStatus = 0 HealthStatus_WARNING HealthStatus = 1 HealthStatus_CRITICAL HealthStatus = 2 HealthStatus_UNKNOWN HealthStatus = 3 )
func (HealthStatus) EnumDescriptor ¶
func (HealthStatus) EnumDescriptor() ([]byte, []int)
func (HealthStatus) String ¶
func (x HealthStatus) String() string
type PackageIdent ¶
type PackageIdent struct { Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Release string `protobuf:"bytes,4,opt,name=release,proto3" json:"release,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The package indentifier of a service is unique and is the combination of origin/name/version/release
Example: core/redis/0.1.0/8743278934278923
func (*PackageIdent) Descriptor ¶
func (*PackageIdent) Descriptor() ([]byte, []int)
func (*PackageIdent) GetName ¶
func (m *PackageIdent) GetName() string
func (*PackageIdent) GetOrigin ¶
func (m *PackageIdent) GetOrigin() string
func (*PackageIdent) GetRelease ¶
func (m *PackageIdent) GetRelease() string
func (*PackageIdent) GetVersion ¶
func (m *PackageIdent) GetVersion() string
func (*PackageIdent) ProtoMessage ¶
func (*PackageIdent) ProtoMessage()
func (*PackageIdent) Reset ¶
func (m *PackageIdent) Reset()
func (*PackageIdent) String ¶
func (m *PackageIdent) String() string
func (*PackageIdent) XXX_DiscardUnknown ¶
func (m *PackageIdent) XXX_DiscardUnknown()
func (*PackageIdent) XXX_Marshal ¶
func (m *PackageIdent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PackageIdent) XXX_Merge ¶
func (dst *PackageIdent) XXX_Merge(src proto.Message)
func (*PackageIdent) XXX_Size ¶
func (m *PackageIdent) XXX_Size() int
func (*PackageIdent) XXX_Unmarshal ¶
func (m *PackageIdent) XXX_Unmarshal(b []byte) error
type Service ¶
type Service struct { SupervisorId string `protobuf:"bytes,1,opt,name=supervisor_id,json=supervisorId,proto3" json:"supervisor_id,omitempty"` Release string `protobuf:"bytes,2,opt,name=release,proto3" json:"release,omitempty"` Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` HealthCheck HealthStatus `` /* 144-byte string literal not displayed */ Status ServiceStatus `protobuf:"varint,5,opt,name=status,proto3,enum=chef.automate.api.applications.ServiceStatus" json:"status,omitempty"` Application string `protobuf:"bytes,6,opt,name=application,proto3" json:"application,omitempty"` Environment string `protobuf:"bytes,7,opt,name=environment,proto3" json:"environment,omitempty"` Fqdn string `protobuf:"bytes,8,opt,name=fqdn,proto3" json:"fqdn,omitempty"` Channel string `protobuf:"bytes,9,opt,name=channel,proto3" json:"channel,omitempty"` Site string `protobuf:"bytes,17,opt,name=site,proto3" json:"site,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Service) Descriptor ¶
func (*Service) GetApplication ¶
func (*Service) GetChannel ¶
func (*Service) GetEnvironment ¶
func (*Service) GetHealthCheck ¶
func (m *Service) GetHealthCheck() HealthStatus
func (*Service) GetRelease ¶
func (*Service) GetStatus ¶
func (m *Service) GetStatus() ServiceStatus
func (*Service) GetSupervisorId ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
type ServiceGroup ¶
type ServiceGroup struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This field is the full package identifier combined in a single string like: // Example: core/redis/0.1.0/8743278934278923 Release string `protobuf:"bytes,2,opt,name=release,proto3" json:"release,omitempty"` Status HealthStatus `protobuf:"varint,3,opt,name=status,proto3,enum=chef.automate.api.applications.HealthStatus" json:"status,omitempty"` // The health_percentage can be a number between 0-100 HealthPercentage int32 `protobuf:"varint,4,opt,name=health_percentage,json=healthPercentage,proto3" json:"health_percentage,omitempty"` ServicesHealthCounts *HealthCounts `protobuf:"bytes,5,opt,name=services_health_counts,json=servicesHealthCounts,proto3" json:"services_health_counts,omitempty"` Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A service group message is the representation of one single service group that is internally generated by aggregating all the services
func (*ServiceGroup) Descriptor ¶
func (*ServiceGroup) Descriptor() ([]byte, []int)
func (*ServiceGroup) GetHealthPercentage ¶
func (m *ServiceGroup) GetHealthPercentage() int32
func (*ServiceGroup) GetId ¶
func (m *ServiceGroup) GetId() string
func (*ServiceGroup) GetName ¶
func (m *ServiceGroup) GetName() string
func (*ServiceGroup) GetRelease ¶
func (m *ServiceGroup) GetRelease() string
func (*ServiceGroup) GetServicesHealthCounts ¶
func (m *ServiceGroup) GetServicesHealthCounts() *HealthCounts
func (*ServiceGroup) GetStatus ¶
func (m *ServiceGroup) GetStatus() HealthStatus
func (*ServiceGroup) ProtoMessage ¶
func (*ServiceGroup) ProtoMessage()
func (*ServiceGroup) Reset ¶
func (m *ServiceGroup) Reset()
func (*ServiceGroup) String ¶
func (m *ServiceGroup) String() string
func (*ServiceGroup) XXX_DiscardUnknown ¶
func (m *ServiceGroup) XXX_DiscardUnknown()
func (*ServiceGroup) XXX_Marshal ¶
func (m *ServiceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServiceGroup) XXX_Merge ¶
func (dst *ServiceGroup) XXX_Merge(src proto.Message)
func (*ServiceGroup) XXX_Size ¶
func (m *ServiceGroup) XXX_Size() int
func (*ServiceGroup) XXX_Unmarshal ¶
func (m *ServiceGroup) XXX_Unmarshal(b []byte) error
type ServiceGroups ¶
type ServiceGroups struct { ServiceGroups []*ServiceGroup `protobuf:"bytes,1,rep,name=service_groups,json=serviceGroups,proto3" json:"service_groups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServiceGroups) Descriptor ¶
func (*ServiceGroups) Descriptor() ([]byte, []int)
func (*ServiceGroups) GetServiceGroups ¶
func (m *ServiceGroups) GetServiceGroups() []*ServiceGroup
func (*ServiceGroups) ProtoMessage ¶
func (*ServiceGroups) ProtoMessage()
func (*ServiceGroups) Reset ¶
func (m *ServiceGroups) Reset()
func (*ServiceGroups) String ¶
func (m *ServiceGroups) String() string
func (*ServiceGroups) XXX_DiscardUnknown ¶
func (m *ServiceGroups) XXX_DiscardUnknown()
func (*ServiceGroups) XXX_Marshal ¶
func (m *ServiceGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServiceGroups) XXX_Merge ¶
func (dst *ServiceGroups) XXX_Merge(src proto.Message)
func (*ServiceGroups) XXX_Size ¶
func (m *ServiceGroups) XXX_Size() int
func (*ServiceGroups) XXX_Unmarshal ¶
func (m *ServiceGroups) XXX_Unmarshal(b []byte) error
type ServiceGroupsHealthCountsReq ¶
type ServiceGroupsHealthCountsReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServiceGroupsHealthCountsReq) Descriptor ¶
func (*ServiceGroupsHealthCountsReq) Descriptor() ([]byte, []int)
func (*ServiceGroupsHealthCountsReq) ProtoMessage ¶
func (*ServiceGroupsHealthCountsReq) ProtoMessage()
func (*ServiceGroupsHealthCountsReq) Reset ¶
func (m *ServiceGroupsHealthCountsReq) Reset()
func (*ServiceGroupsHealthCountsReq) String ¶
func (m *ServiceGroupsHealthCountsReq) String() string
func (*ServiceGroupsHealthCountsReq) XXX_DiscardUnknown ¶
func (m *ServiceGroupsHealthCountsReq) XXX_DiscardUnknown()
func (*ServiceGroupsHealthCountsReq) XXX_Marshal ¶
func (m *ServiceGroupsHealthCountsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServiceGroupsHealthCountsReq) XXX_Merge ¶
func (dst *ServiceGroupsHealthCountsReq) XXX_Merge(src proto.Message)
func (*ServiceGroupsHealthCountsReq) XXX_Size ¶
func (m *ServiceGroupsHealthCountsReq) XXX_Size() int
func (*ServiceGroupsHealthCountsReq) XXX_Unmarshal ¶
func (m *ServiceGroupsHealthCountsReq) XXX_Unmarshal(b []byte) error
type ServiceGroupsReq ¶
type ServiceGroupsReq struct { Filter []string `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"` Pagination *query.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *query.Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServiceGroupsReq) Descriptor ¶
func (*ServiceGroupsReq) Descriptor() ([]byte, []int)
func (*ServiceGroupsReq) GetFilter ¶
func (m *ServiceGroupsReq) GetFilter() []string
func (*ServiceGroupsReq) GetPagination ¶
func (m *ServiceGroupsReq) GetPagination() *query.Pagination
func (*ServiceGroupsReq) GetSorting ¶
func (m *ServiceGroupsReq) GetSorting() *query.Sorting
func (*ServiceGroupsReq) ProtoMessage ¶
func (*ServiceGroupsReq) ProtoMessage()
func (*ServiceGroupsReq) Reset ¶
func (m *ServiceGroupsReq) Reset()
func (*ServiceGroupsReq) String ¶
func (m *ServiceGroupsReq) String() string
func (*ServiceGroupsReq) XXX_DiscardUnknown ¶
func (m *ServiceGroupsReq) XXX_DiscardUnknown()
func (*ServiceGroupsReq) XXX_Marshal ¶
func (m *ServiceGroupsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServiceGroupsReq) XXX_Merge ¶
func (dst *ServiceGroupsReq) XXX_Merge(src proto.Message)
func (*ServiceGroupsReq) XXX_Size ¶
func (m *ServiceGroupsReq) XXX_Size() int
func (*ServiceGroupsReq) XXX_Unmarshal ¶
func (m *ServiceGroupsReq) XXX_Unmarshal(b []byte) error
type ServiceStatus ¶
type ServiceStatus int32
The ServiceStatus enum describes the status of the service @afiune have we defined these states somewhere?
const ( ServiceStatus_RUNNING ServiceStatus = 0 ServiceStatus_INITIALIZING ServiceStatus = 1 ServiceStatus_DEPLOYING ServiceStatus = 2 ServiceStatus_DOWN ServiceStatus = 3 )
func (ServiceStatus) EnumDescriptor ¶
func (ServiceStatus) EnumDescriptor() ([]byte, []int)
func (ServiceStatus) String ¶
func (x ServiceStatus) String() string
type ServicesBySGReq ¶
type ServicesBySGReq struct { ServiceGroupId int32 `protobuf:"varint,1,opt,name=service_group_id,json=serviceGroupId,proto3" json:"service_group_id,omitempty"` Pagination *query.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *query.Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"` Health string `protobuf:"bytes,4,opt,name=health,proto3" json:"health,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServicesBySGReq) Descriptor ¶
func (*ServicesBySGReq) Descriptor() ([]byte, []int)
func (*ServicesBySGReq) GetHealth ¶
func (m *ServicesBySGReq) GetHealth() string
func (*ServicesBySGReq) GetPagination ¶
func (m *ServicesBySGReq) GetPagination() *query.Pagination
func (*ServicesBySGReq) GetServiceGroupId ¶
func (m *ServicesBySGReq) GetServiceGroupId() int32
func (*ServicesBySGReq) GetSorting ¶
func (m *ServicesBySGReq) GetSorting() *query.Sorting
func (*ServicesBySGReq) ProtoMessage ¶
func (*ServicesBySGReq) ProtoMessage()
func (*ServicesBySGReq) Reset ¶
func (m *ServicesBySGReq) Reset()
func (*ServicesBySGReq) String ¶
func (m *ServicesBySGReq) String() string
func (*ServicesBySGReq) XXX_DiscardUnknown ¶
func (m *ServicesBySGReq) XXX_DiscardUnknown()
func (*ServicesBySGReq) XXX_Marshal ¶
func (m *ServicesBySGReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServicesBySGReq) XXX_Merge ¶
func (dst *ServicesBySGReq) XXX_Merge(src proto.Message)
func (*ServicesBySGReq) XXX_Size ¶
func (m *ServicesBySGReq) XXX_Size() int
func (*ServicesBySGReq) XXX_Unmarshal ¶
func (m *ServicesBySGReq) XXX_Unmarshal(b []byte) error
type ServicesBySGRes ¶
type ServicesBySGRes struct { Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` Services []*Service `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"` ServicesHealthCounts *HealthCounts `protobuf:"bytes,3,opt,name=services_health_counts,json=servicesHealthCounts,proto3" json:"services_health_counts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServicesBySGRes) Descriptor ¶
func (*ServicesBySGRes) Descriptor() ([]byte, []int)
func (*ServicesBySGRes) GetGroup ¶
func (m *ServicesBySGRes) GetGroup() string
func (*ServicesBySGRes) GetServices ¶
func (m *ServicesBySGRes) GetServices() []*Service
func (*ServicesBySGRes) GetServicesHealthCounts ¶
func (m *ServicesBySGRes) GetServicesHealthCounts() *HealthCounts
func (*ServicesBySGRes) ProtoMessage ¶
func (*ServicesBySGRes) ProtoMessage()
func (*ServicesBySGRes) Reset ¶
func (m *ServicesBySGRes) Reset()
func (*ServicesBySGRes) String ¶
func (m *ServicesBySGRes) String() string
func (*ServicesBySGRes) XXX_DiscardUnknown ¶
func (m *ServicesBySGRes) XXX_DiscardUnknown()
func (*ServicesBySGRes) XXX_Marshal ¶
func (m *ServicesBySGRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServicesBySGRes) XXX_Merge ¶
func (dst *ServicesBySGRes) XXX_Merge(src proto.Message)
func (*ServicesBySGRes) XXX_Size ¶
func (m *ServicesBySGRes) XXX_Size() int
func (*ServicesBySGRes) XXX_Unmarshal ¶
func (m *ServicesBySGRes) XXX_Unmarshal(b []byte) error
type ServicesReq ¶
type ServicesReq struct { Filter []string `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"` Pagination *query.Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *query.Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServicesReq) Descriptor ¶
func (*ServicesReq) Descriptor() ([]byte, []int)
func (*ServicesReq) GetFilter ¶
func (m *ServicesReq) GetFilter() []string
func (*ServicesReq) GetPagination ¶
func (m *ServicesReq) GetPagination() *query.Pagination
func (*ServicesReq) GetSorting ¶
func (m *ServicesReq) GetSorting() *query.Sorting
func (*ServicesReq) ProtoMessage ¶
func (*ServicesReq) ProtoMessage()
func (*ServicesReq) Reset ¶
func (m *ServicesReq) Reset()
func (*ServicesReq) String ¶
func (m *ServicesReq) String() string
func (*ServicesReq) XXX_DiscardUnknown ¶
func (m *ServicesReq) XXX_DiscardUnknown()
func (*ServicesReq) XXX_Marshal ¶
func (m *ServicesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServicesReq) XXX_Merge ¶
func (dst *ServicesReq) XXX_Merge(src proto.Message)
func (*ServicesReq) XXX_Size ¶
func (m *ServicesReq) XXX_Size() int
func (*ServicesReq) XXX_Unmarshal ¶
func (m *ServicesReq) XXX_Unmarshal(b []byte) error
type ServicesRes ¶
type ServicesRes struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServicesRes) Descriptor ¶
func (*ServicesRes) Descriptor() ([]byte, []int)
func (*ServicesRes) GetServices ¶
func (m *ServicesRes) GetServices() []*Service
func (*ServicesRes) ProtoMessage ¶
func (*ServicesRes) ProtoMessage()
func (*ServicesRes) Reset ¶
func (m *ServicesRes) Reset()
func (*ServicesRes) String ¶
func (m *ServicesRes) String() string
func (*ServicesRes) XXX_DiscardUnknown ¶
func (m *ServicesRes) XXX_DiscardUnknown()
func (*ServicesRes) XXX_Marshal ¶
func (m *ServicesRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServicesRes) XXX_Merge ¶
func (dst *ServicesRes) XXX_Merge(src proto.Message)
func (*ServicesRes) XXX_Size ¶
func (m *ServicesRes) XXX_Size() int
func (*ServicesRes) XXX_Unmarshal ¶
func (m *ServicesRes) XXX_Unmarshal(b []byte) error