activity

package
v0.0.0-...-af36fda Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_activity_activity_proto protoreflect.FileDescriptor
View Source
var File_api_v1_activity_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.activity.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetActivities",
			Handler:    _Service_GetActivities_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/activity/service.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type Activity

type Activity struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Scope     *Scope                 `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
	Message   *Message               `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

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

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetMessage

func (x *Activity) GetMessage() *Message

func (*Activity) GetScope

func (x *Activity) GetScope() *Scope

func (*Activity) GetTimestamp

func (x *Activity) GetTimestamp() *timestamppb.Timestamp

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

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

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type ActivityFilter

type ActivityFilter struct {
	ProjectFilter        string `protobuf:"bytes,1,opt,name=project_filter,json=projectFilter,proto3" json:"project_filter,omitempty"`
	EnvironmentFilter    string `protobuf:"bytes,2,opt,name=environment_filter,json=environmentFilter,proto3" json:"environment_filter,omitempty"`
	CapsuleFilter        string `protobuf:"bytes,3,opt,name=capsule_filter,json=capsuleFilter,proto3" json:"capsule_filter,omitempty"`
	UserIdentifierFilter string `protobuf:"bytes,4,opt,name=user_identifier_filter,json=userIdentifierFilter,proto3" json:"user_identifier_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivityFilter) Descriptor deprecated

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

Deprecated: Use ActivityFilter.ProtoReflect.Descriptor instead.

func (*ActivityFilter) GetCapsuleFilter

func (x *ActivityFilter) GetCapsuleFilter() string

func (*ActivityFilter) GetEnvironmentFilter

func (x *ActivityFilter) GetEnvironmentFilter() string

func (*ActivityFilter) GetProjectFilter

func (x *ActivityFilter) GetProjectFilter() string

func (*ActivityFilter) GetUserIdentifierFilter

func (x *ActivityFilter) GetUserIdentifierFilter() string

func (*ActivityFilter) ProtoMessage

func (*ActivityFilter) ProtoMessage()

func (*ActivityFilter) ProtoReflect

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

func (*ActivityFilter) Reset

func (x *ActivityFilter) Reset()

func (*ActivityFilter) String

func (x *ActivityFilter) String() string

type GetActivitiesRequest

type GetActivitiesRequest struct {
	From       *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To         *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Pagination *model.Pagination      `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Filter     *ActivityFilter        `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActivitiesRequest) Descriptor deprecated

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

Deprecated: Use GetActivitiesRequest.ProtoReflect.Descriptor instead.

func (*GetActivitiesRequest) GetFilter

func (x *GetActivitiesRequest) GetFilter() *ActivityFilter

func (*GetActivitiesRequest) GetFrom

func (*GetActivitiesRequest) GetPagination

func (x *GetActivitiesRequest) GetPagination() *model.Pagination

func (*GetActivitiesRequest) GetTo

func (*GetActivitiesRequest) ProtoMessage

func (*GetActivitiesRequest) ProtoMessage()

func (*GetActivitiesRequest) ProtoReflect

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

func (*GetActivitiesRequest) Reset

func (x *GetActivitiesRequest) Reset()

func (*GetActivitiesRequest) String

func (x *GetActivitiesRequest) String() string

type GetActivitiesResponse

type GetActivitiesResponse struct {
	Activities []*Activity `protobuf:"bytes,1,rep,name=activities,proto3" json:"activities,omitempty"`
	Total      uint64      `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActivitiesResponse) Descriptor deprecated

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

Deprecated: Use GetActivitiesResponse.ProtoReflect.Descriptor instead.

func (*GetActivitiesResponse) GetActivities

func (x *GetActivitiesResponse) GetActivities() []*Activity

func (*GetActivitiesResponse) GetTotal

func (x *GetActivitiesResponse) GetTotal() uint64

func (*GetActivitiesResponse) ProtoMessage

func (*GetActivitiesResponse) ProtoMessage()

func (*GetActivitiesResponse) ProtoReflect

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

func (*GetActivitiesResponse) Reset

func (x *GetActivitiesResponse) Reset()

func (*GetActivitiesResponse) String

func (x *GetActivitiesResponse) String() string

type Message

type Message struct {

	// Types that are assignable to Message:
	//
	//	*Message_Rollout_
	//	*Message_Project_
	//	*Message_Environment_
	//	*Message_Capsule_
	//	*Message_User_
	Message isMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetCapsule

func (x *Message) GetCapsule() *Message_Capsule

func (*Message) GetEnvironment

func (x *Message) GetEnvironment() *Message_Environment

func (*Message) GetMessage

func (m *Message) GetMessage() isMessage_Message

func (*Message) GetProject

func (x *Message) GetProject() *Message_Project

func (*Message) GetRollout

func (x *Message) GetRollout() *Message_Rollout

func (*Message) GetUser

func (x *Message) GetUser() *Message_User

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_Capsule

type Message_Capsule struct {
	CapsuleId string `protobuf:"bytes,1,opt,name=capsule_id,json=capsuleId,proto3" json:"capsule_id,omitempty"`
	Deleted   bool   `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_Capsule) Descriptor deprecated

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

Deprecated: Use Message_Capsule.ProtoReflect.Descriptor instead.

func (*Message_Capsule) GetCapsuleId

func (x *Message_Capsule) GetCapsuleId() string

func (*Message_Capsule) GetDeleted

func (x *Message_Capsule) GetDeleted() bool

func (*Message_Capsule) ProtoMessage

func (*Message_Capsule) ProtoMessage()

func (*Message_Capsule) ProtoReflect

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

func (*Message_Capsule) Reset

func (x *Message_Capsule) Reset()

func (*Message_Capsule) String

func (x *Message_Capsule) String() string

type Message_Capsule_

type Message_Capsule_ struct {
	Capsule *Message_Capsule `protobuf:"bytes,5,opt,name=capsule,proto3,oneof"`
}

type Message_Environment

type Message_Environment struct {
	EnvironmentId string `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	Deleted       bool   `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_Environment) Descriptor deprecated

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

Deprecated: Use Message_Environment.ProtoReflect.Descriptor instead.

func (*Message_Environment) GetDeleted

func (x *Message_Environment) GetDeleted() bool

func (*Message_Environment) GetEnvironmentId

func (x *Message_Environment) GetEnvironmentId() string

func (*Message_Environment) ProtoMessage

func (*Message_Environment) ProtoMessage()

func (*Message_Environment) ProtoReflect

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

func (*Message_Environment) Reset

func (x *Message_Environment) Reset()

func (*Message_Environment) String

func (x *Message_Environment) String() string

type Message_Environment_

type Message_Environment_ struct {
	Environment *Message_Environment `protobuf:"bytes,4,opt,name=environment,proto3,oneof"`
}

type Message_Project

type Message_Project struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Deleted   bool   `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_Project) Descriptor deprecated

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

Deprecated: Use Message_Project.ProtoReflect.Descriptor instead.

func (*Message_Project) GetDeleted

func (x *Message_Project) GetDeleted() bool

func (*Message_Project) GetProjectId

func (x *Message_Project) GetProjectId() string

func (*Message_Project) ProtoMessage

func (*Message_Project) ProtoMessage()

func (*Message_Project) ProtoReflect

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

func (*Message_Project) Reset

func (x *Message_Project) Reset()

func (*Message_Project) String

func (x *Message_Project) String() string

type Message_Project_

type Message_Project_ struct {
	Project *Message_Project `protobuf:"bytes,3,opt,name=project,proto3,oneof"`
}

type Message_Rollout

type Message_Rollout struct {
	RolloutId uint64            `protobuf:"varint,1,opt,name=rollout_id,json=rolloutId,proto3" json:"rollout_id,omitempty"`
	State     rollout.StepState `protobuf:"varint,2,opt,name=state,proto3,enum=api.v1.capsule.rollout.StepState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_Rollout) Descriptor deprecated

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

Deprecated: Use Message_Rollout.ProtoReflect.Descriptor instead.

func (*Message_Rollout) GetRolloutId

func (x *Message_Rollout) GetRolloutId() uint64

func (*Message_Rollout) GetState

func (x *Message_Rollout) GetState() rollout.StepState

func (*Message_Rollout) ProtoMessage

func (*Message_Rollout) ProtoMessage()

func (*Message_Rollout) ProtoReflect

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

func (*Message_Rollout) Reset

func (x *Message_Rollout) Reset()

func (*Message_Rollout) String

func (x *Message_Rollout) String() string

type Message_Rollout_

type Message_Rollout_ struct {
	Rollout *Message_Rollout `protobuf:"bytes,1,opt,name=rollout,proto3,oneof"`
}

type Message_User

type Message_User struct {
	PrintableName string `protobuf:"bytes,1,opt,name=printable_name,json=printableName,proto3" json:"printable_name,omitempty"`
	Deleted       bool   `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_User) Descriptor deprecated

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

Deprecated: Use Message_User.ProtoReflect.Descriptor instead.

func (*Message_User) GetDeleted

func (x *Message_User) GetDeleted() bool

func (*Message_User) GetPrintableName

func (x *Message_User) GetPrintableName() string

func (*Message_User) ProtoMessage

func (*Message_User) ProtoMessage()

func (*Message_User) ProtoReflect

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

func (*Message_User) Reset

func (x *Message_User) Reset()

func (*Message_User) String

func (x *Message_User) String() string

type Message_User_

type Message_User_ struct {
	User *Message_User `protobuf:"bytes,6,opt,name=user,proto3,oneof"`
}

type Scope

type Scope struct {
	Project     string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"`
	Capsule     string `protobuf:"bytes,3,opt,name=capsule,proto3" json:"capsule,omitempty"`
	User        string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Scope) Descriptor deprecated

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

Deprecated: Use Scope.ProtoReflect.Descriptor instead.

func (*Scope) GetCapsule

func (x *Scope) GetCapsule() string

func (*Scope) GetEnvironment

func (x *Scope) GetEnvironment() string

func (*Scope) GetProject

func (x *Scope) GetProject() string

func (*Scope) GetUser

func (x *Scope) GetUser() string

func (*Scope) ProtoMessage

func (*Scope) ProtoMessage()

func (*Scope) ProtoReflect

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

func (*Scope) Reset

func (x *Scope) Reset()

func (*Scope) String

func (x *Scope) String() string

type ServiceClient

type ServiceClient interface {
	// Get Activities
	GetActivities(ctx context.Context, in *GetActivitiesRequest, opts ...grpc.CallOption) (*GetActivitiesResponse, error)
}

ServiceClient is the client API for Service 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.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	// Get Activities
	GetActivities(context.Context, *GetActivitiesRequest) (*GetActivitiesResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) GetActivities

type UnsafeServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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