installations

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ComponentStateType_name = map[int32]string{
		0: "COMPONENT_STATE_TYPE_UNSPECIFIED",
		1: "PENDING",
		2: "STARTED",
		3: "ERROR_STARTING",
		4: "RUNNING",
		5: "FINISHED",
		6: "ERROR",
	}
	ComponentStateType_value = map[string]int32{
		"COMPONENT_STATE_TYPE_UNSPECIFIED": 0,
		"PENDING":                          1,
		"STARTED":                          2,
		"ERROR_STARTING":                   3,
		"RUNNING":                          4,
		"FINISHED":                         5,
		"ERROR":                            6,
	}
)

Enum value maps for ComponentStateType.

View Source
var ComponentStatusService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.installations.v1.ComponentStatusService",
	HandlerType: (*ComponentStatusServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateComponentStatus",
			Handler:    _ComponentStatusService_UpdateComponentStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strmprivacy/api/installations/v1/installations_v1.proto",
}

ComponentStatusService_ServiceDesc is the grpc.ServiceDesc for ComponentStatusService 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_strmprivacy_api_installations_v1_installations_v1_proto protoreflect.FileDescriptor

Functions

func RegisterComponentStatusServiceServer

func RegisterComponentStatusServiceServer(s grpc.ServiceRegistrar, srv ComponentStatusServiceServer)

Types

type ComponentState

type ComponentState struct {
	StateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"`
	Component string                 `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"`
	State     ComponentStateType     `protobuf:"varint,3,opt,name=state,proto3,enum=strmprivacy.api.installations.v1.ComponentStateType" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentState) Descriptor deprecated

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

Deprecated: Use ComponentState.ProtoReflect.Descriptor instead.

func (*ComponentState) GetComponent

func (x *ComponentState) GetComponent() string

func (*ComponentState) GetState

func (x *ComponentState) GetState() ComponentStateType

func (*ComponentState) GetStateTime

func (x *ComponentState) GetStateTime() *timestamppb.Timestamp

func (*ComponentState) ProtoMessage

func (*ComponentState) ProtoMessage()

func (*ComponentState) ProtoReflect

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

func (*ComponentState) Reset

func (x *ComponentState) Reset()

func (*ComponentState) String

func (x *ComponentState) String() string

type ComponentStateType

type ComponentStateType int32
const (
	ComponentStateType_COMPONENT_STATE_TYPE_UNSPECIFIED ComponentStateType = 0
	ComponentStateType_PENDING                          ComponentStateType = 1
	ComponentStateType_STARTED                          ComponentStateType = 2
	ComponentStateType_ERROR_STARTING                   ComponentStateType = 3
	ComponentStateType_RUNNING                          ComponentStateType = 4
	ComponentStateType_FINISHED                         ComponentStateType = 5
	ComponentStateType_ERROR                            ComponentStateType = 6
)

func (ComponentStateType) Descriptor

func (ComponentStateType) Enum

func (ComponentStateType) EnumDescriptor deprecated

func (ComponentStateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ComponentStateType.Descriptor instead.

func (ComponentStateType) Number

func (ComponentStateType) String

func (x ComponentStateType) String() string

func (ComponentStateType) Type

type ComponentStatusServiceClient

type ComponentStatusServiceClient interface {
	UpdateComponentStatus(ctx context.Context, in *UpdateComponentStatusRequest, opts ...grpc.CallOption) (*UpdateComponentStatusResponse, error)
}

ComponentStatusServiceClient is the client API for ComponentStatusService 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 ComponentStatusServiceServer

type ComponentStatusServiceServer interface {
	UpdateComponentStatus(context.Context, *UpdateComponentStatusRequest) (*UpdateComponentStatusResponse, error)
	// contains filtered or unexported methods
}

ComponentStatusServiceServer is the server API for ComponentStatusService service. All implementations must embed UnimplementedComponentStatusServiceServer for forward compatibility

type UnimplementedComponentStatusServiceServer

type UnimplementedComponentStatusServiceServer struct {
}

UnimplementedComponentStatusServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedComponentStatusServiceServer) UpdateComponentStatus

type UnsafeComponentStatusServiceServer

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

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

type UpdateComponentStatusRequest

type UpdateComponentStatusRequest struct {
	BillingId      string          `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"`
	ComponentState *ComponentState `protobuf:"bytes,2,opt,name=component_state,json=componentState,proto3" json:"component_state,omitempty"`
	// contains filtered or unexported fields
}

(-- api-linter: core::0134::request-mask-required=disabled

aip.dev/not-precedent: This RPC only updates one field. --)

func (*UpdateComponentStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateComponentStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateComponentStatusRequest) GetBillingId

func (x *UpdateComponentStatusRequest) GetBillingId() string

func (*UpdateComponentStatusRequest) GetComponentState

func (x *UpdateComponentStatusRequest) GetComponentState() *ComponentState

func (*UpdateComponentStatusRequest) ProtoMessage

func (*UpdateComponentStatusRequest) ProtoMessage()

func (*UpdateComponentStatusRequest) ProtoReflect

func (*UpdateComponentStatusRequest) Reset

func (x *UpdateComponentStatusRequest) Reset()

func (*UpdateComponentStatusRequest) String

type UpdateComponentStatusResponse

type UpdateComponentStatusResponse struct {
	BillingId      string          `protobuf:"bytes,1,opt,name=billing_id,json=billingId,proto3" json:"billing_id,omitempty"`
	ComponentState *ComponentState `protobuf:"bytes,2,opt,name=component_state,json=componentState,proto3" json:"component_state,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateComponentStatusResponse) Descriptor deprecated

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

Deprecated: Use UpdateComponentStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateComponentStatusResponse) GetBillingId

func (x *UpdateComponentStatusResponse) GetBillingId() string

func (*UpdateComponentStatusResponse) GetComponentState

func (x *UpdateComponentStatusResponse) GetComponentState() *ComponentState

func (*UpdateComponentStatusResponse) ProtoMessage

func (*UpdateComponentStatusResponse) ProtoMessage()

func (*UpdateComponentStatusResponse) ProtoReflect

func (*UpdateComponentStatusResponse) Reset

func (x *UpdateComponentStatusResponse) Reset()

func (*UpdateComponentStatusResponse) String

Jump to

Keyboard shortcuts

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