environments

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Environments_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.Environments",
	HandlerType: (*EnvironmentsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Environments_Get_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "List",
			Handler:       _Environments_List_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "external/gitlab/environments/environments_v1.proto",
}

Environments_ServiceDesc is the grpc.ServiceDesc for Environments 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_external_gitlab_environments_environments_v1_proto protoreflect.FileDescriptor

Functions

func RegisterEnvironmentsServer

func RegisterEnvironmentsServer(s grpc.ServiceRegistrar, srv EnvironmentsServer)

Types

type EnvironmentID

type EnvironmentID struct {
	ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Gitlab Project ID
	Id        int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`                                // Gitlab Environment Id
	// contains filtered or unexported fields
}

* Represents a Gitlab Environment ID

func (*EnvironmentID) Descriptor deprecated

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

Deprecated: Use EnvironmentID.ProtoReflect.Descriptor instead.

func (*EnvironmentID) GetId

func (x *EnvironmentID) GetId() int64

func (*EnvironmentID) GetProjectId

func (x *EnvironmentID) GetProjectId() int64

func (*EnvironmentID) ProtoMessage

func (*EnvironmentID) ProtoMessage()

func (*EnvironmentID) ProtoReflect

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

func (*EnvironmentID) Reset

func (x *EnvironmentID) Reset()

func (*EnvironmentID) String

func (x *EnvironmentID) String() string

type EnvironmentInfo

type EnvironmentInfo struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                // Gitlab Environment ID
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                             // Gitlab Environment name
	State     string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`                           // Gitlab Environment state
	Url       string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`                               // Gitlab Environment external URL
	Ref       string `protobuf:"bytes,5,opt,name=ref,proto3" json:"ref,omitempty"`                               // Gitlab Environment commit
	Sha       string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`                               // Gitlab Environment commit SHA
	CiStatus  string `protobuf:"bytes,7,opt,name=ci_status,json=ciStatus,proto3" json:"ci_status,omitempty"`     // Gitlab Environment Gitlab-CI status
	CiId      int64  `protobuf:"varint,8,opt,name=ci_id,json=ciId,proto3" json:"ci_id,omitempty"`                // Gitlab Environment Gitlab-CI ID
	UserId    int64  `protobuf:"varint,9,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`          // Gitlab Environment Gitlab-CI trigger user ID
	UserName  string `protobuf:"bytes,10,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`    // Gitlab Environment Gitlab-CI trigger user name
	UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Gitlab Environment update time
	// contains filtered or unexported fields
}

* Represents a Gitlab Environment

func (*EnvironmentInfo) Descriptor deprecated

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

Deprecated: Use EnvironmentInfo.ProtoReflect.Descriptor instead.

func (*EnvironmentInfo) GetCiId

func (x *EnvironmentInfo) GetCiId() int64

func (*EnvironmentInfo) GetCiStatus

func (x *EnvironmentInfo) GetCiStatus() string

func (*EnvironmentInfo) GetId

func (x *EnvironmentInfo) GetId() int64

func (*EnvironmentInfo) GetName

func (x *EnvironmentInfo) GetName() string

func (*EnvironmentInfo) GetRef

func (x *EnvironmentInfo) GetRef() string

func (*EnvironmentInfo) GetSha

func (x *EnvironmentInfo) GetSha() string

func (*EnvironmentInfo) GetState

func (x *EnvironmentInfo) GetState() string

func (*EnvironmentInfo) GetUpdatedAt

func (x *EnvironmentInfo) GetUpdatedAt() string

func (*EnvironmentInfo) GetUrl

func (x *EnvironmentInfo) GetUrl() string

func (*EnvironmentInfo) GetUserId

func (x *EnvironmentInfo) GetUserId() int64

func (*EnvironmentInfo) GetUserName

func (x *EnvironmentInfo) GetUserName() string

func (*EnvironmentInfo) ProtoMessage

func (*EnvironmentInfo) ProtoMessage()

func (*EnvironmentInfo) ProtoReflect

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

func (*EnvironmentInfo) Reset

func (x *EnvironmentInfo) Reset()

func (*EnvironmentInfo) String

func (x *EnvironmentInfo) String() string

type EnvironmentName

type EnvironmentName struct {
	ProjectId int64  `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Gitlab Project ID
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                             // Gitlab Environment name
	// contains filtered or unexported fields
}

* Represents a Gitlab Environment name

func (*EnvironmentName) Descriptor deprecated

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

Deprecated: Use EnvironmentName.ProtoReflect.Descriptor instead.

func (*EnvironmentName) GetName

func (x *EnvironmentName) GetName() string

func (*EnvironmentName) GetProjectId

func (x *EnvironmentName) GetProjectId() int64

func (*EnvironmentName) ProtoMessage

func (*EnvironmentName) ProtoMessage()

func (*EnvironmentName) ProtoReflect

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

func (*EnvironmentName) Reset

func (x *EnvironmentName) Reset()

func (*EnvironmentName) String

func (x *EnvironmentName) String() string

type EnvironmentsClient

type EnvironmentsClient interface {
	/// Get Environment by ID
	Get(ctx context.Context, in *EnvironmentID, opts ...grpc.CallOption) (*EnvironmentInfo, error)
	/// Stream Environments by name
	List(ctx context.Context, in *EnvironmentName, opts ...grpc.CallOption) (Environments_ListClient, error)
}

EnvironmentsClient is the client API for Environments 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 EnvironmentsServer

type EnvironmentsServer interface {
	/// Get Environment by ID
	Get(context.Context, *EnvironmentID) (*EnvironmentInfo, error)
	/// Stream Environments by name
	List(*EnvironmentName, Environments_ListServer) error
	// contains filtered or unexported methods
}

EnvironmentsServer is the server API for Environments service. All implementations must embed UnimplementedEnvironmentsServer for forward compatibility

type Environments_ListClient

type Environments_ListClient interface {
	Recv() (*EnvironmentInfo, error)
	grpc.ClientStream
}

type Environments_ListServer

type Environments_ListServer interface {
	Send(*EnvironmentInfo) error
	grpc.ServerStream
}

type UnimplementedEnvironmentsServer

type UnimplementedEnvironmentsServer struct {
}

UnimplementedEnvironmentsServer must be embedded to have forward compatible implementations.

func (UnimplementedEnvironmentsServer) Get

func (UnimplementedEnvironmentsServer) List

type UnsafeEnvironmentsServer

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

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

Jump to

Keyboard shortcuts

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