configuration

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package configuration is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrControlIDsEmpty indicates the request doesn't include any control IDs
	ErrControlIDsEmpty = errors.New("control IDs must be specified")
	// ErrRequestEmpty indicates the request is empty
	ErrRequestEmpty = errors.New("request is empty")
	// ErrServiceIDMissing indicates the request doesn't include a service ID
	ErrServiceIDMissing = errors.New("serviceID is missing")
)
View Source
var Configuration_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cam.Configuration",
	HandlerType: (*ConfigurationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartMonitoring",
			Handler:    _Configuration_StartMonitoring_Handler,
		},
		{
			MethodName: "StopMonitoring",
			Handler:    _Configuration_StopMonitoring_Handler,
		},
		{
			MethodName: "GetMonitoringStatus",
			Handler:    _Configuration_GetMonitoringStatus_Handler,
		},
		{
			MethodName: "ListMetrics",
			Handler:    _Configuration_ListMetrics_Handler,
		},
		{
			MethodName: "GetMetric",
			Handler:    _Configuration_GetMetric_Handler,
		},
		{
			MethodName: "RegisterCloudService",
			Handler:    _Configuration_RegisterCloudService_Handler,
		},
		{
			MethodName: "UpdateCloudService",
			Handler:    _Configuration_UpdateCloudService_Handler,
		},
		{
			MethodName: "ConfigureCloudService",
			Handler:    _Configuration_ConfigureCloudService_Handler,
		},
		{
			MethodName: "ListCloudServiceConfigurations",
			Handler:    _Configuration_ListCloudServiceConfigurations_Handler,
		},
		{
			MethodName: "GetCloudService",
			Handler:    _Configuration_GetCloudService_Handler,
		},
		{
			MethodName: "ListCloudServices",
			Handler:    _Configuration_ListCloudServices_Handler,
		},
		{
			MethodName: "RemoveCloudService",
			Handler:    _Configuration_RemoveCloudService_Handler,
		},
		{
			MethodName: "ListControls",
			Handler:    _Configuration_ListControls_Handler,
		},
		{
			MethodName: "ListCollectionModules",
			Handler:    _Configuration_ListCollectionModules_Handler,
		},
		{
			MethodName: "AddCollectionModule",
			Handler:    _Configuration_AddCollectionModule_Handler,
		},
		{
			MethodName: "FindCollectionModule",
			Handler:    _Configuration_FindCollectionModule_Handler,
		},
		{
			MethodName: "RemoveCollectionModule",
			Handler:    _Configuration_RemoveCollectionModule_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/configuration/configuration.proto",
}

Configuration_ServiceDesc is the grpc.ServiceDesc for Configuration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_configuration_configuration_proto protoreflect.FileDescriptor

Functions

func RegisterConfigurationHandler

func RegisterConfigurationHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error

RegisterConfigurationHandler registers the http handlers for service Configuration to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterConfigurationHandlerClient

func RegisterConfigurationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConfigurationClient) error

RegisterConfigurationHandlerClient registers the http handlers for service Configuration to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ConfigurationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ConfigurationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ConfigurationClient" to call the correct interceptors.

func RegisterConfigurationHandlerFromEndpoint

func RegisterConfigurationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterConfigurationHandlerFromEndpoint is same as RegisterConfigurationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterConfigurationHandlerServer

func RegisterConfigurationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConfigurationServer) error

RegisterConfigurationHandlerServer registers the http handlers for service Configuration to "mux". UnaryRPC :call ConfigurationServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterConfigurationHandlerFromEndpoint instead.

func RegisterConfigurationServer

func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)

Types

type AddCollectionModuleRequest

type AddCollectionModuleRequest struct {
	Module *collection.CollectionModule `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCollectionModuleRequest) Descriptor deprecated

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

Deprecated: Use AddCollectionModuleRequest.ProtoReflect.Descriptor instead.

func (*AddCollectionModuleRequest) GetModule

func (*AddCollectionModuleRequest) ProtoMessage

func (*AddCollectionModuleRequest) ProtoMessage()

func (*AddCollectionModuleRequest) ProtoReflect

func (*AddCollectionModuleRequest) Reset

func (x *AddCollectionModuleRequest) Reset()

func (*AddCollectionModuleRequest) String

func (x *AddCollectionModuleRequest) String() string

type ConfigurationClient

type ConfigurationClient interface {
	StartMonitoring(ctx context.Context, in *StartMonitoringRequest, opts ...grpc.CallOption) (*StartMonitoringResponse, error)
	StopMonitoring(ctx context.Context, in *StopMonitoringRequest, opts ...grpc.CallOption) (*StopMonitoringResponse, error)
	// Retrieves the current monitoring status of the given service. The status
	// includes the controls which are currently being monitored and the times of
	// the last and next scheduled monitoring run. Returns 404 error when
	// monitoring for this service wasn't started yet. Returns empty list when
	// monitoring was started but is currently stopped/paused.
	GetMonitoringStatus(ctx context.Context, in *GetMonitoringStatusRequest, opts ...grpc.CallOption) (*MonitoringStatus, error)
	// Lists metrics. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	ListMetrics(ctx context.Context, in *orchestrator.ListMetricsRequest, opts ...grpc.CallOption) (*orchestrator.ListMetricsResponse, error)
	// Retrieves a particular metric. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	GetMetric(ctx context.Context, in *orchestrator.GetMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error)
	// Registers a new target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	RegisterCloudService(ctx context.Context, in *orchestrator.RegisterCloudServiceRequest, opts ...grpc.CallOption) (*orchestrator.CloudService, error)
	// Registers a new target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	UpdateCloudService(ctx context.Context, in *orchestrator.UpdateCloudServiceRequest, opts ...grpc.CallOption) (*orchestrator.CloudService, error)
	ConfigureCloudService(ctx context.Context, in *ConfigureCloudServiceRequest, opts ...grpc.CallOption) (*ConfigureCloudServiceResponse, error)
	ListCloudServiceConfigurations(ctx context.Context, in *ListCloudServiceConfigurationsRequest, opts ...grpc.CallOption) (*ListCloudServiceConfigurationsResponse, error)
	// Retrieves a target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	GetCloudService(ctx context.Context, in *orchestrator.GetCloudServiceRequest, opts ...grpc.CallOption) (*orchestrator.CloudService, error)
	// Lists all target cloud services. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	ListCloudServices(ctx context.Context, in *orchestrator.ListCloudServicesRequest, opts ...grpc.CallOption) (*orchestrator.ListCloudServicesResponse, error)
	// Removes a target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	RemoveCloudService(ctx context.Context, in *orchestrator.RemoveCloudServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListControls(ctx context.Context, in *orchestrator.ListRequirementsRequest, opts ...grpc.CallOption) (*orchestrator.ListRequirementsResponse, error)
	ListCollectionModules(ctx context.Context, in *ListCollectionModulesRequest, opts ...grpc.CallOption) (*ListCollectionModulesResponse, error)
	AddCollectionModule(ctx context.Context, in *AddCollectionModuleRequest, opts ...grpc.CallOption) (*collection.CollectionModule, error)
	FindCollectionModule(ctx context.Context, in *FindCollectionModuleRequest, opts ...grpc.CallOption) (*collection.CollectionModule, error)
	RemoveCollectionModule(ctx context.Context, in *RemoveCollectionModuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ConfigurationClient is the client API for Configuration service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ConfigurationServer

type ConfigurationServer interface {
	StartMonitoring(context.Context, *StartMonitoringRequest) (*StartMonitoringResponse, error)
	StopMonitoring(context.Context, *StopMonitoringRequest) (*StopMonitoringResponse, error)
	// Retrieves the current monitoring status of the given service. The status
	// includes the controls which are currently being monitored and the times of
	// the last and next scheduled monitoring run. Returns 404 error when
	// monitoring for this service wasn't started yet. Returns empty list when
	// monitoring was started but is currently stopped/paused.
	GetMonitoringStatus(context.Context, *GetMonitoringStatusRequest) (*MonitoringStatus, error)
	// Lists metrics. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	ListMetrics(context.Context, *orchestrator.ListMetricsRequest) (*orchestrator.ListMetricsResponse, error)
	// Retrieves a particular metric. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	GetMetric(context.Context, *orchestrator.GetMetricRequest) (*assessment.Metric, error)
	// Registers a new target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	RegisterCloudService(context.Context, *orchestrator.RegisterCloudServiceRequest) (*orchestrator.CloudService, error)
	// Registers a new target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	UpdateCloudService(context.Context, *orchestrator.UpdateCloudServiceRequest) (*orchestrator.CloudService, error)
	ConfigureCloudService(context.Context, *ConfigureCloudServiceRequest) (*ConfigureCloudServiceResponse, error)
	ListCloudServiceConfigurations(context.Context, *ListCloudServiceConfigurationsRequest) (*ListCloudServiceConfigurationsResponse, error)
	// Retrieves a target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	GetCloudService(context.Context, *orchestrator.GetCloudServiceRequest) (*orchestrator.CloudService, error)
	// Lists all target cloud services. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	ListCloudServices(context.Context, *orchestrator.ListCloudServicesRequest) (*orchestrator.ListCloudServicesResponse, error)
	// Removes a target cloud service. This function is a wrapper around the
	// Clouditor Orchestrator's identical function, but we explicitly specify it
	// here so that we can expose it via the configuration interfaces's REST API.
	RemoveCloudService(context.Context, *orchestrator.RemoveCloudServiceRequest) (*emptypb.Empty, error)
	ListControls(context.Context, *orchestrator.ListRequirementsRequest) (*orchestrator.ListRequirementsResponse, error)
	ListCollectionModules(context.Context, *ListCollectionModulesRequest) (*ListCollectionModulesResponse, error)
	AddCollectionModule(context.Context, *AddCollectionModuleRequest) (*collection.CollectionModule, error)
	FindCollectionModule(context.Context, *FindCollectionModuleRequest) (*collection.CollectionModule, error)
	RemoveCollectionModule(context.Context, *RemoveCollectionModuleRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ConfigurationServer is the server API for Configuration service. All implementations must embed UnimplementedConfigurationServer for forward compatibility

type Configurations

type Configurations struct {
	Configurations []*collection.ServiceConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"`
	// contains filtered or unexported fields
}

func (*Configurations) Descriptor deprecated

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

Deprecated: Use Configurations.ProtoReflect.Descriptor instead.

func (*Configurations) GetConfigurations

func (x *Configurations) GetConfigurations() []*collection.ServiceConfiguration

func (*Configurations) ProtoMessage

func (*Configurations) ProtoMessage()

func (*Configurations) ProtoReflect

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

func (*Configurations) Reset

func (x *Configurations) Reset()

func (*Configurations) String

func (x *Configurations) String() string

type ConfigureCloudServiceRequest

type ConfigureCloudServiceRequest struct {
	ServiceId      string          `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Configurations *Configurations `protobuf:"bytes,2,opt,name=configurations,proto3" json:"configurations,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigureCloudServiceRequest) Descriptor deprecated

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

Deprecated: Use ConfigureCloudServiceRequest.ProtoReflect.Descriptor instead.

func (*ConfigureCloudServiceRequest) GetConfigurations

func (x *ConfigureCloudServiceRequest) GetConfigurations() *Configurations

func (*ConfigureCloudServiceRequest) GetServiceId

func (x *ConfigureCloudServiceRequest) GetServiceId() string

func (*ConfigureCloudServiceRequest) ProtoMessage

func (*ConfigureCloudServiceRequest) ProtoMessage()

func (*ConfigureCloudServiceRequest) ProtoReflect

func (*ConfigureCloudServiceRequest) Reset

func (x *ConfigureCloudServiceRequest) Reset()

func (*ConfigureCloudServiceRequest) String

type ConfigureCloudServiceResponse

type ConfigureCloudServiceResponse struct {
	// contains filtered or unexported fields
}

func (*ConfigureCloudServiceResponse) Descriptor deprecated

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

Deprecated: Use ConfigureCloudServiceResponse.ProtoReflect.Descriptor instead.

func (*ConfigureCloudServiceResponse) ProtoMessage

func (*ConfigureCloudServiceResponse) ProtoMessage()

func (*ConfigureCloudServiceResponse) ProtoReflect

func (*ConfigureCloudServiceResponse) Reset

func (x *ConfigureCloudServiceResponse) Reset()

func (*ConfigureCloudServiceResponse) String

type FindCollectionModuleRequest

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

func (*FindCollectionModuleRequest) Descriptor deprecated

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

Deprecated: Use FindCollectionModuleRequest.ProtoReflect.Descriptor instead.

func (*FindCollectionModuleRequest) GetMetricId

func (x *FindCollectionModuleRequest) GetMetricId() string

func (*FindCollectionModuleRequest) ProtoMessage

func (*FindCollectionModuleRequest) ProtoMessage()

func (*FindCollectionModuleRequest) ProtoReflect

func (*FindCollectionModuleRequest) Reset

func (x *FindCollectionModuleRequest) Reset()

func (*FindCollectionModuleRequest) String

func (x *FindCollectionModuleRequest) String() string

type GetControlRequest

type GetControlRequest struct {
	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	ControlId string `protobuf:"bytes,2,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetControlRequest) Descriptor deprecated

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

Deprecated: Use GetControlRequest.ProtoReflect.Descriptor instead.

func (*GetControlRequest) GetControlId

func (x *GetControlRequest) GetControlId() string

func (*GetControlRequest) GetServiceId

func (x *GetControlRequest) GetServiceId() string

func (*GetControlRequest) ProtoMessage

func (*GetControlRequest) ProtoMessage()

func (*GetControlRequest) ProtoReflect

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

func (*GetControlRequest) Reset

func (x *GetControlRequest) Reset()

func (*GetControlRequest) String

func (x *GetControlRequest) String() string

type GetMetricRequest

type GetMetricRequest struct {
	MetricId int32 `protobuf:"varint,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricRequest) Descriptor deprecated

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

Deprecated: Use GetMetricRequest.ProtoReflect.Descriptor instead.

func (*GetMetricRequest) GetMetricId

func (x *GetMetricRequest) GetMetricId() int32

func (*GetMetricRequest) ProtoMessage

func (*GetMetricRequest) ProtoMessage()

func (*GetMetricRequest) ProtoReflect

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

func (*GetMetricRequest) Reset

func (x *GetMetricRequest) Reset()

func (*GetMetricRequest) String

func (x *GetMetricRequest) String() string

type GetMonitoringStatusRequest

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

func (*GetMonitoringStatusRequest) Descriptor deprecated

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

Deprecated: Use GetMonitoringStatusRequest.ProtoReflect.Descriptor instead.

func (*GetMonitoringStatusRequest) GetServiceId

func (x *GetMonitoringStatusRequest) GetServiceId() string

func (*GetMonitoringStatusRequest) ProtoMessage

func (*GetMonitoringStatusRequest) ProtoMessage()

func (*GetMonitoringStatusRequest) ProtoReflect

func (*GetMonitoringStatusRequest) Reset

func (x *GetMonitoringStatusRequest) Reset()

func (*GetMonitoringStatusRequest) String

func (x *GetMonitoringStatusRequest) String() string

type ListCloudServiceConfigurationsRequest added in v0.2.0

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

func (*ListCloudServiceConfigurationsRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ListCloudServiceConfigurationsRequest.ProtoReflect.Descriptor instead.

func (*ListCloudServiceConfigurationsRequest) GetServiceId added in v0.2.0

func (*ListCloudServiceConfigurationsRequest) ProtoMessage added in v0.2.0

func (*ListCloudServiceConfigurationsRequest) ProtoMessage()

func (*ListCloudServiceConfigurationsRequest) ProtoReflect added in v0.2.0

func (*ListCloudServiceConfigurationsRequest) Reset added in v0.2.0

func (*ListCloudServiceConfigurationsRequest) String added in v0.2.0

type ListCloudServiceConfigurationsResponse added in v0.2.0

type ListCloudServiceConfigurationsResponse struct {
	Configurations []*collection.ServiceConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCloudServiceConfigurationsResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ListCloudServiceConfigurationsResponse.ProtoReflect.Descriptor instead.

func (*ListCloudServiceConfigurationsResponse) GetConfigurations added in v0.2.0

func (*ListCloudServiceConfigurationsResponse) ProtoMessage added in v0.2.0

func (*ListCloudServiceConfigurationsResponse) ProtoReflect added in v0.2.0

func (*ListCloudServiceConfigurationsResponse) Reset added in v0.2.0

func (*ListCloudServiceConfigurationsResponse) String added in v0.2.0

type ListCollectionModulesRequest

type ListCollectionModulesRequest struct {
	// contains filtered or unexported fields
}

func (*ListCollectionModulesRequest) Descriptor deprecated

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

Deprecated: Use ListCollectionModulesRequest.ProtoReflect.Descriptor instead.

func (*ListCollectionModulesRequest) ProtoMessage

func (*ListCollectionModulesRequest) ProtoMessage()

func (*ListCollectionModulesRequest) ProtoReflect

func (*ListCollectionModulesRequest) Reset

func (x *ListCollectionModulesRequest) Reset()

func (*ListCollectionModulesRequest) String

type ListCollectionModulesResponse

type ListCollectionModulesResponse struct {
	Modules []*collection.CollectionModule `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCollectionModulesResponse) Descriptor deprecated

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

Deprecated: Use ListCollectionModulesResponse.ProtoReflect.Descriptor instead.

func (*ListCollectionModulesResponse) GetModules

func (*ListCollectionModulesResponse) ProtoMessage

func (*ListCollectionModulesResponse) ProtoMessage()

func (*ListCollectionModulesResponse) ProtoReflect

func (*ListCollectionModulesResponse) Reset

func (x *ListCollectionModulesResponse) Reset()

func (*ListCollectionModulesResponse) String

type MonitoringStatus

type MonitoringStatus struct {

	// Reference to the service whose status is requested
	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Reference to the controls that are currently being monitored
	ControlIds []string `protobuf:"bytes,2,rep,name=control_ids,json=controlIds,proto3" json:"control_ids,omitempty"`
	// Time when the service was last monitored. Empty when it hasn't started yet
	LastRun *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_run,json=lastRun,proto3" json:"last_run,omitempty"`
	// Time when the service will be monitored next time. Empty when monitoring is
	// not running.
	NextRun *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=next_run,json=nextRun,proto3" json:"next_run,omitempty"`
	// contains filtered or unexported fields
}

func (*MonitoringStatus) Descriptor deprecated

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

Deprecated: Use MonitoringStatus.ProtoReflect.Descriptor instead.

func (*MonitoringStatus) GetControlIds

func (x *MonitoringStatus) GetControlIds() []string

func (*MonitoringStatus) GetLastRun added in v0.2.0

func (x *MonitoringStatus) GetLastRun() *timestamppb.Timestamp

func (*MonitoringStatus) GetNextRun added in v0.2.0

func (x *MonitoringStatus) GetNextRun() *timestamppb.Timestamp

func (*MonitoringStatus) GetServiceId

func (x *MonitoringStatus) GetServiceId() string

func (*MonitoringStatus) ProtoMessage

func (*MonitoringStatus) ProtoMessage()

func (*MonitoringStatus) ProtoReflect

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

func (*MonitoringStatus) Reset

func (x *MonitoringStatus) Reset()

func (*MonitoringStatus) String

func (x *MonitoringStatus) String() string

type RemoveCollectionModuleRequest

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

func (*RemoveCollectionModuleRequest) Descriptor deprecated

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

Deprecated: Use RemoveCollectionModuleRequest.ProtoReflect.Descriptor instead.

func (*RemoveCollectionModuleRequest) GetModuleId

func (x *RemoveCollectionModuleRequest) GetModuleId() string

func (*RemoveCollectionModuleRequest) ProtoMessage

func (*RemoveCollectionModuleRequest) ProtoMessage()

func (*RemoveCollectionModuleRequest) ProtoReflect

func (*RemoveCollectionModuleRequest) Reset

func (x *RemoveCollectionModuleRequest) Reset()

func (*RemoveCollectionModuleRequest) String

type StartMonitoringRequest

type StartMonitoringRequest struct {
	ServiceId  string   `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	ControlIds []string `protobuf:"bytes,2,rep,name=control_ids,json=controlIds,proto3" json:"control_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*StartMonitoringRequest) Descriptor deprecated

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

Deprecated: Use StartMonitoringRequest.ProtoReflect.Descriptor instead.

func (*StartMonitoringRequest) GetControlIds

func (x *StartMonitoringRequest) GetControlIds() []string

func (*StartMonitoringRequest) GetServiceId

func (x *StartMonitoringRequest) GetServiceId() string

func (*StartMonitoringRequest) ProtoMessage

func (*StartMonitoringRequest) ProtoMessage()

func (*StartMonitoringRequest) ProtoReflect

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

func (*StartMonitoringRequest) Reset

func (x *StartMonitoringRequest) Reset()

func (*StartMonitoringRequest) String

func (x *StartMonitoringRequest) String() string

func (*StartMonitoringRequest) Validate

func (req *StartMonitoringRequest) Validate() (err error)

Validate validates the `StartMonitoringRequest`

type StartMonitoringResponse

type StartMonitoringResponse struct {
	Status *MonitoringStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StartMonitoringResponse) Descriptor deprecated

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

Deprecated: Use StartMonitoringResponse.ProtoReflect.Descriptor instead.

func (*StartMonitoringResponse) GetStatus added in v0.2.0

func (x *StartMonitoringResponse) GetStatus() *MonitoringStatus

func (*StartMonitoringResponse) ProtoMessage

func (*StartMonitoringResponse) ProtoMessage()

func (*StartMonitoringResponse) ProtoReflect

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

func (*StartMonitoringResponse) Reset

func (x *StartMonitoringResponse) Reset()

func (*StartMonitoringResponse) String

func (x *StartMonitoringResponse) String() string

type StopMonitoringRequest

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

func (*StopMonitoringRequest) Descriptor deprecated

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

Deprecated: Use StopMonitoringRequest.ProtoReflect.Descriptor instead.

func (*StopMonitoringRequest) GetServiceId

func (x *StopMonitoringRequest) GetServiceId() string

func (*StopMonitoringRequest) ProtoMessage

func (*StopMonitoringRequest) ProtoMessage()

func (*StopMonitoringRequest) ProtoReflect

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

func (*StopMonitoringRequest) Reset

func (x *StopMonitoringRequest) Reset()

func (*StopMonitoringRequest) String

func (x *StopMonitoringRequest) String() string

type StopMonitoringResponse

type StopMonitoringResponse struct {
	// contains filtered or unexported fields
}

func (*StopMonitoringResponse) Descriptor deprecated

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

Deprecated: Use StopMonitoringResponse.ProtoReflect.Descriptor instead.

func (*StopMonitoringResponse) ProtoMessage

func (*StopMonitoringResponse) ProtoMessage()

func (*StopMonitoringResponse) ProtoReflect

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

func (*StopMonitoringResponse) Reset

func (x *StopMonitoringResponse) Reset()

func (*StopMonitoringResponse) String

func (x *StopMonitoringResponse) String() string

type UnimplementedConfigurationServer

type UnimplementedConfigurationServer struct {
}

UnimplementedConfigurationServer must be embedded to have forward compatible implementations.

func (UnimplementedConfigurationServer) AddCollectionModule

func (UnimplementedConfigurationServer) FindCollectionModule

func (UnimplementedConfigurationServer) GetMetric

func (UnimplementedConfigurationServer) GetMonitoringStatus

func (UnimplementedConfigurationServer) ListCloudServiceConfigurations added in v0.2.0

func (UnimplementedConfigurationServer) RemoveCloudService

func (UnimplementedConfigurationServer) RemoveCollectionModule

func (UnimplementedConfigurationServer) StartMonitoring

func (UnimplementedConfigurationServer) StopMonitoring

type UnsafeConfigurationServer

type UnsafeConfigurationServer interface {
	// contains filtered or unexported methods
}

UnsafeConfigurationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigurationServer will result in compilation errors.

Jump to

Keyboard shortcuts

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