v1

package
v0.1.335 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	JobStatus_name = map[int32]string{
		0: "JOB_STATUS_UNSPECIFIED",
		1: "JOB_STATUS_IN_PROGRESS",
		2: "JOB_STATUS_FAILED",
		3: "JOB_STATUS_DONE",
	}
	JobStatus_value = map[string]int32{
		"JOB_STATUS_UNSPECIFIED": 0,
		"JOB_STATUS_IN_PROGRESS": 1,
		"JOB_STATUS_FAILED":      2,
		"JOB_STATUS_DONE":        3,
	}
)

Enum value maps for JobStatus.

View Source
var BuildService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "viam.app.build.v1.BuildService",
	HandlerType: (*BuildServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartBuild",
			Handler:    _BuildService_StartBuild_Handler,
		},
		{
			MethodName: "ListJobs",
			Handler:    _BuildService_ListJobs_Handler,
		},
		{
			MethodName: "LinkRepo",
			Handler:    _BuildService_LinkRepo_Handler,
		},
		{
			MethodName: "UnlinkRepo",
			Handler:    _BuildService_UnlinkRepo_Handler,
		},
		{
			MethodName: "ListRepoLinks",
			Handler:    _BuildService_ListRepoLinks_Handler,
		},
		{
			MethodName: "ListAppLinks",
			Handler:    _BuildService_ListAppLinks_Handler,
		},
		{
			MethodName: "RemoveAppLink",
			Handler:    _BuildService_RemoveAppLink_Handler,
		},
		{
			MethodName: "LinkOrg",
			Handler:    _BuildService_LinkOrg_Handler,
		},
		{
			MethodName: "UnlinkOrg",
			Handler:    _BuildService_UnlinkOrg_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetLogs",
			Handler:       _BuildService_GetLogs_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "app/build/v1/build.proto",
}

BuildService_ServiceDesc is the grpc.ServiceDesc for BuildService 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_app_build_v1_build_proto protoreflect.FileDescriptor

Functions

func RegisterBuildServiceHandler

func RegisterBuildServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func RegisterBuildServiceHandlerClient

func RegisterBuildServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BuildServiceClient) error

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

func RegisterBuildServiceHandlerFromEndpoint

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

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

func RegisterBuildServiceHandlerServer

func RegisterBuildServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BuildServiceServer) error

RegisterBuildServiceHandlerServer registers the http handlers for service BuildService to "mux". UnaryRPC :call BuildServiceServer 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 RegisterBuildServiceHandlerFromEndpoint instead.

func RegisterBuildServiceServer

func RegisterBuildServiceServer(s grpc.ServiceRegistrar, srv BuildServiceServer)

Types

type AppLink struct {

	// viam internal ID which maps to an external oauth app
	OauthAppLinkId string `protobuf:"bytes,1,opt,name=oauth_app_link_id,json=oauthAppLinkId,proto3" json:"oauth_app_link_id,omitempty"`
	// email of the viam user that owns this
	ViamUser string `protobuf:"bytes,2,opt,name=viam_user,json=viamUser,proto3" json:"viam_user,omitempty"`
	// username of the external user who created this
	ExternalUser string `protobuf:"bytes,3,opt,name=external_user,json=externalUser,proto3" json:"external_user,omitempty"`
	// list of org public namespace (where available) or org UUIDs attached to the external app
	OrgIdOrNs []string `protobuf:"bytes,4,rep,name=org_id_or_ns,json=orgIdOrNs,proto3" json:"org_id_or_ns,omitempty"`
	// contains filtered or unexported fields
}

represents a link between viam users / orgs and an external oauth app

func (*AppLink) Descriptor deprecated added in v0.1.335

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

Deprecated: Use AppLink.ProtoReflect.Descriptor instead.

func (*AppLink) GetExternalUser added in v0.1.335

func (x *AppLink) GetExternalUser() string

func (*AppLink) GetOauthAppLinkId added in v0.1.335

func (x *AppLink) GetOauthAppLinkId() string

func (*AppLink) GetOrgIdOrNs added in v0.1.335

func (x *AppLink) GetOrgIdOrNs() []string

func (*AppLink) GetViamUser added in v0.1.335

func (x *AppLink) GetViamUser() string

func (*AppLink) ProtoMessage added in v0.1.335

func (*AppLink) ProtoMessage()

func (*AppLink) ProtoReflect added in v0.1.335

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

func (*AppLink) Reset added in v0.1.335

func (x *AppLink) Reset()

func (*AppLink) String added in v0.1.335

func (x *AppLink) String() string

type BuildServiceClient

type BuildServiceClient interface {
	// Asynchronously start a build of a Viam module, with one job per platform.
	StartBuild(ctx context.Context, in *StartBuildRequest, opts ...grpc.CallOption) (*StartBuildResponse, error)
	// Fetch logs from a single job of a single build.
	GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (BuildService_GetLogsClient, error)
	// List the jobs for a module ordered by (build start time, alphabetical platform).
	ListJobs(ctx context.Context, in *ListJobsRequest, opts ...grpc.CallOption) (*ListJobsResponse, error)
	// link a git repo to a module.
	LinkRepo(ctx context.Context, in *LinkRepoRequest, opts ...grpc.CallOption) (*LinkRepoResponse, error)
	// delete a module-repo link.
	UnlinkRepo(ctx context.Context, in *UnlinkRepoRequest, opts ...grpc.CallOption) (*UnlinkRepoResponse, error)
	// list module-repo links owned by user (directly or through orgs).
	ListRepoLinks(ctx context.Context, in *ListRepoLinksRequest, opts ...grpc.CallOption) (*ListRepoLinksResponse, error)
	// list external oauth apps owned by user (directly or through orgs).
	ListAppLinks(ctx context.Context, in *ListAppLinksRequest, opts ...grpc.CallOption) (*ListAppLinksResponse, error)
	// delete a viam-app link.
	RemoveAppLink(ctx context.Context, in *RemoveAppLinkRequest, opts ...grpc.CallOption) (*RemoveAppLinkResponse, error)
	// add an org to an oauth app link.
	LinkOrg(ctx context.Context, in *LinkOrgRequest, opts ...grpc.CallOption) (*LinkOrgResponse, error)
	// remove an org from an oauth app link.
	UnlinkOrg(ctx context.Context, in *UnlinkOrgRequest, opts ...grpc.CallOption) (*UnlinkOrgResponse, error)
}

BuildServiceClient is the client API for BuildService 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 BuildServiceServer

type BuildServiceServer interface {
	// Asynchronously start a build of a Viam module, with one job per platform.
	StartBuild(context.Context, *StartBuildRequest) (*StartBuildResponse, error)
	// Fetch logs from a single job of a single build.
	GetLogs(*GetLogsRequest, BuildService_GetLogsServer) error
	// List the jobs for a module ordered by (build start time, alphabetical platform).
	ListJobs(context.Context, *ListJobsRequest) (*ListJobsResponse, error)
	// link a git repo to a module.
	LinkRepo(context.Context, *LinkRepoRequest) (*LinkRepoResponse, error)
	// delete a module-repo link.
	UnlinkRepo(context.Context, *UnlinkRepoRequest) (*UnlinkRepoResponse, error)
	// list module-repo links owned by user (directly or through orgs).
	ListRepoLinks(context.Context, *ListRepoLinksRequest) (*ListRepoLinksResponse, error)
	// list external oauth apps owned by user (directly or through orgs).
	ListAppLinks(context.Context, *ListAppLinksRequest) (*ListAppLinksResponse, error)
	// delete a viam-app link.
	RemoveAppLink(context.Context, *RemoveAppLinkRequest) (*RemoveAppLinkResponse, error)
	// add an org to an oauth app link.
	LinkOrg(context.Context, *LinkOrgRequest) (*LinkOrgResponse, error)
	// remove an org from an oauth app link.
	UnlinkOrg(context.Context, *UnlinkOrgRequest) (*UnlinkOrgResponse, error)
	// contains filtered or unexported methods
}

BuildServiceServer is the server API for BuildService service. All implementations must embed UnimplementedBuildServiceServer for forward compatibility

type BuildService_GetLogsClient

type BuildService_GetLogsClient interface {
	Recv() (*GetLogsResponse, error)
	grpc.ClientStream
}

type BuildService_GetLogsServer

type BuildService_GetLogsServer interface {
	Send(*GetLogsResponse) error
	grpc.ServerStream
}

type GetLogsRequest

type GetLogsRequest struct {
	BuildId  string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLogsRequest) Descriptor deprecated

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

Deprecated: Use GetLogsRequest.ProtoReflect.Descriptor instead.

func (*GetLogsRequest) GetBuildId

func (x *GetLogsRequest) GetBuildId() string

func (*GetLogsRequest) GetPlatform

func (x *GetLogsRequest) GetPlatform() string

func (*GetLogsRequest) ProtoMessage

func (*GetLogsRequest) ProtoMessage()

func (*GetLogsRequest) ProtoReflect

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

func (*GetLogsRequest) Reset

func (x *GetLogsRequest) Reset()

func (*GetLogsRequest) String

func (x *GetLogsRequest) String() string

type GetLogsResponse

type GetLogsResponse struct {
	BuildStep string `protobuf:"bytes,1,opt,name=build_step,json=buildStep,proto3" json:"build_step,omitempty"`
	// includes multiple lines delimited by \n\r
	Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

GetLogsResponse is a streaming endpoint that may have multiple messages that belong to the same build_step if there are too many bytes to fit into a single gRPC response.

func (*GetLogsResponse) Descriptor deprecated

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

Deprecated: Use GetLogsResponse.ProtoReflect.Descriptor instead.

func (*GetLogsResponse) GetBuildStep

func (x *GetLogsResponse) GetBuildStep() string

func (*GetLogsResponse) GetData

func (x *GetLogsResponse) GetData() string

func (*GetLogsResponse) ProtoMessage

func (*GetLogsResponse) ProtoMessage()

func (*GetLogsResponse) ProtoReflect

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

func (*GetLogsResponse) Reset

func (x *GetLogsResponse) Reset()

func (*GetLogsResponse) String

func (x *GetLogsResponse) String() string

type JobInfo

type JobInfo struct {
	BuildId   string                 `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	Platform  string                 `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	Version   string                 `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Status    JobStatus              `protobuf:"varint,4,opt,name=status,proto3,enum=viam.app.build.v1.JobStatus" json:"status,omitempty"`
	StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*JobInfo) Descriptor deprecated

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

Deprecated: Use JobInfo.ProtoReflect.Descriptor instead.

func (*JobInfo) GetBuildId

func (x *JobInfo) GetBuildId() string

func (*JobInfo) GetEndTime

func (x *JobInfo) GetEndTime() *timestamppb.Timestamp

func (*JobInfo) GetPlatform

func (x *JobInfo) GetPlatform() string

func (*JobInfo) GetStartTime

func (x *JobInfo) GetStartTime() *timestamppb.Timestamp

func (*JobInfo) GetStatus

func (x *JobInfo) GetStatus() JobStatus

func (*JobInfo) GetVersion

func (x *JobInfo) GetVersion() string

func (*JobInfo) ProtoMessage

func (*JobInfo) ProtoMessage()

func (*JobInfo) ProtoReflect

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

func (*JobInfo) Reset

func (x *JobInfo) Reset()

func (*JobInfo) String

func (x *JobInfo) String() string

type JobStatus

type JobStatus int32
const (
	JobStatus_JOB_STATUS_UNSPECIFIED JobStatus = 0
	// IN_PROGRESS = pending or executing on cloud infra. Artifact has not been uploaded.
	JobStatus_JOB_STATUS_IN_PROGRESS JobStatus = 1
	JobStatus_JOB_STATUS_FAILED      JobStatus = 2
	JobStatus_JOB_STATUS_DONE        JobStatus = 3
)

func (JobStatus) Descriptor

func (JobStatus) Descriptor() protoreflect.EnumDescriptor

func (JobStatus) Enum

func (x JobStatus) Enum() *JobStatus

func (JobStatus) EnumDescriptor deprecated

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

Deprecated: Use JobStatus.Descriptor instead.

func (JobStatus) Number

func (x JobStatus) Number() protoreflect.EnumNumber

func (JobStatus) String

func (x JobStatus) String() string

func (JobStatus) Type

type LinkOrgRequest added in v0.1.335

type LinkOrgRequest struct {

	// viam internal ID which maps to an external oauth app
	OauthAppLinkId string `protobuf:"bytes,1,opt,name=oauth_app_link_id,json=oauthAppLinkId,proto3" json:"oauth_app_link_id,omitempty"`
	OrgId          string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkOrgRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use LinkOrgRequest.ProtoReflect.Descriptor instead.

func (*LinkOrgRequest) GetOauthAppLinkId added in v0.1.335

func (x *LinkOrgRequest) GetOauthAppLinkId() string

func (*LinkOrgRequest) GetOrgId added in v0.1.335

func (x *LinkOrgRequest) GetOrgId() string

func (*LinkOrgRequest) ProtoMessage added in v0.1.335

func (*LinkOrgRequest) ProtoMessage()

func (*LinkOrgRequest) ProtoReflect added in v0.1.335

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

func (*LinkOrgRequest) Reset added in v0.1.335

func (x *LinkOrgRequest) Reset()

func (*LinkOrgRequest) String added in v0.1.335

func (x *LinkOrgRequest) String() string

type LinkOrgResponse added in v0.1.335

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

func (*LinkOrgResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use LinkOrgResponse.ProtoReflect.Descriptor instead.

func (*LinkOrgResponse) ProtoMessage added in v0.1.335

func (*LinkOrgResponse) ProtoMessage()

func (*LinkOrgResponse) ProtoReflect added in v0.1.335

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

func (*LinkOrgResponse) Reset added in v0.1.335

func (x *LinkOrgResponse) Reset()

func (*LinkOrgResponse) String added in v0.1.335

func (x *LinkOrgResponse) String() string

type LinkRepoRequest added in v0.1.335

type LinkRepoRequest struct {
	Link *RepoLink `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkRepoRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use LinkRepoRequest.ProtoReflect.Descriptor instead.

func (x *LinkRepoRequest) GetLink() *RepoLink

func (*LinkRepoRequest) ProtoMessage added in v0.1.335

func (*LinkRepoRequest) ProtoMessage()

func (*LinkRepoRequest) ProtoReflect added in v0.1.335

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

func (*LinkRepoRequest) Reset added in v0.1.335

func (x *LinkRepoRequest) Reset()

func (*LinkRepoRequest) String added in v0.1.335

func (x *LinkRepoRequest) String() string

type LinkRepoResponse added in v0.1.335

type LinkRepoResponse struct {
	RepoLinkId string `protobuf:"bytes,1,opt,name=repo_link_id,json=repoLinkId,proto3" json:"repo_link_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LinkRepoResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use LinkRepoResponse.ProtoReflect.Descriptor instead.

func (*LinkRepoResponse) GetRepoLinkId added in v0.1.335

func (x *LinkRepoResponse) GetRepoLinkId() string

func (*LinkRepoResponse) ProtoMessage added in v0.1.335

func (*LinkRepoResponse) ProtoMessage()

func (*LinkRepoResponse) ProtoReflect added in v0.1.335

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

func (*LinkRepoResponse) Reset added in v0.1.335

func (x *LinkRepoResponse) Reset()

func (*LinkRepoResponse) String added in v0.1.335

func (x *LinkRepoResponse) String() string

type ListAppLinksRequest added in v0.1.335

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

func (*ListAppLinksRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use ListAppLinksRequest.ProtoReflect.Descriptor instead.

func (*ListAppLinksRequest) ProtoMessage added in v0.1.335

func (*ListAppLinksRequest) ProtoMessage()

func (*ListAppLinksRequest) ProtoReflect added in v0.1.335

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

func (*ListAppLinksRequest) Reset added in v0.1.335

func (x *ListAppLinksRequest) Reset()

func (*ListAppLinksRequest) String added in v0.1.335

func (x *ListAppLinksRequest) String() string

type ListAppLinksResponse added in v0.1.335

type ListAppLinksResponse struct {
	Links []*AppLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAppLinksResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use ListAppLinksResponse.ProtoReflect.Descriptor instead.

func (x *ListAppLinksResponse) GetLinks() []*AppLink

func (*ListAppLinksResponse) ProtoMessage added in v0.1.335

func (*ListAppLinksResponse) ProtoMessage()

func (*ListAppLinksResponse) ProtoReflect added in v0.1.335

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

func (*ListAppLinksResponse) Reset added in v0.1.335

func (x *ListAppLinksResponse) Reset()

func (*ListAppLinksResponse) String added in v0.1.335

func (x *ListAppLinksResponse) String() string

type ListJobsRequest

type ListJobsRequest struct {

	// module_id as prefix:name pair
	ModuleId string `protobuf:"bytes,1,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
	// don't return more than max_jobs_length jobs
	// if not present, return all jobs.
	MaxJobsLength *int32 `protobuf:"varint,2,opt,name=max_jobs_length,json=maxJobsLength,proto3,oneof" json:"max_jobs_length,omitempty"`
	// only return jobs that match this build id
	// if not present, return all jobs.
	BuildId *string `protobuf:"bytes,3,opt,name=build_id,json=buildId,proto3,oneof" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobsRequest) Descriptor deprecated

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

Deprecated: Use ListJobsRequest.ProtoReflect.Descriptor instead.

func (*ListJobsRequest) GetBuildId

func (x *ListJobsRequest) GetBuildId() string

func (*ListJobsRequest) GetMaxJobsLength

func (x *ListJobsRequest) GetMaxJobsLength() int32

func (*ListJobsRequest) GetModuleId

func (x *ListJobsRequest) GetModuleId() string

func (*ListJobsRequest) ProtoMessage

func (*ListJobsRequest) ProtoMessage()

func (*ListJobsRequest) ProtoReflect

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

func (*ListJobsRequest) Reset

func (x *ListJobsRequest) Reset()

func (*ListJobsRequest) String

func (x *ListJobsRequest) String() string

type ListJobsResponse

type ListJobsResponse struct {

	// jobs is ordered by (build start time, alphabetical platform).
	Jobs []*JobInfo `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"`
	// contains filtered or unexported fields
}

func (*ListJobsResponse) Descriptor deprecated

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

Deprecated: Use ListJobsResponse.ProtoReflect.Descriptor instead.

func (*ListJobsResponse) GetJobs

func (x *ListJobsResponse) GetJobs() []*JobInfo

func (*ListJobsResponse) ProtoMessage

func (*ListJobsResponse) ProtoMessage()

func (*ListJobsResponse) ProtoReflect

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

func (*ListJobsResponse) Reset

func (x *ListJobsResponse) Reset()

func (*ListJobsResponse) String

func (x *ListJobsResponse) String() string

type ListRepoLinksRequest added in v0.1.335

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

func (*ListRepoLinksRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use ListRepoLinksRequest.ProtoReflect.Descriptor instead.

func (*ListRepoLinksRequest) ProtoMessage added in v0.1.335

func (*ListRepoLinksRequest) ProtoMessage()

func (*ListRepoLinksRequest) ProtoReflect added in v0.1.335

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

func (*ListRepoLinksRequest) Reset added in v0.1.335

func (x *ListRepoLinksRequest) Reset()

func (*ListRepoLinksRequest) String added in v0.1.335

func (x *ListRepoLinksRequest) String() string

type ListRepoLinksResponse added in v0.1.335

type ListRepoLinksResponse struct {
	Links []*RepoLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRepoLinksResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use ListRepoLinksResponse.ProtoReflect.Descriptor instead.

func (x *ListRepoLinksResponse) GetLinks() []*RepoLink

func (*ListRepoLinksResponse) ProtoMessage added in v0.1.335

func (*ListRepoLinksResponse) ProtoMessage()

func (*ListRepoLinksResponse) ProtoReflect added in v0.1.335

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

func (*ListRepoLinksResponse) Reset added in v0.1.335

func (x *ListRepoLinksResponse) Reset()

func (*ListRepoLinksResponse) String added in v0.1.335

func (x *ListRepoLinksResponse) String() string

type RemoveAppLinkRequest added in v0.1.335

type RemoveAppLinkRequest struct {

	// viam internal ID which maps to an external oauth app
	OauthAppLinkId string `protobuf:"bytes,1,opt,name=oauth_app_link_id,json=oauthAppLinkId,proto3" json:"oauth_app_link_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveAppLinkRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use RemoveAppLinkRequest.ProtoReflect.Descriptor instead.

func (*RemoveAppLinkRequest) GetOauthAppLinkId added in v0.1.335

func (x *RemoveAppLinkRequest) GetOauthAppLinkId() string

func (*RemoveAppLinkRequest) ProtoMessage added in v0.1.335

func (*RemoveAppLinkRequest) ProtoMessage()

func (*RemoveAppLinkRequest) ProtoReflect added in v0.1.335

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

func (*RemoveAppLinkRequest) Reset added in v0.1.335

func (x *RemoveAppLinkRequest) Reset()

func (*RemoveAppLinkRequest) String added in v0.1.335

func (x *RemoveAppLinkRequest) String() string

type RemoveAppLinkResponse added in v0.1.335

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

func (*RemoveAppLinkResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use RemoveAppLinkResponse.ProtoReflect.Descriptor instead.

func (*RemoveAppLinkResponse) ProtoMessage added in v0.1.335

func (*RemoveAppLinkResponse) ProtoMessage()

func (*RemoveAppLinkResponse) ProtoReflect added in v0.1.335

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

func (*RemoveAppLinkResponse) Reset added in v0.1.335

func (x *RemoveAppLinkResponse) Reset()

func (*RemoveAppLinkResponse) String added in v0.1.335

func (x *RemoveAppLinkResponse) String() string
type RepoLink struct {

	// viam internal ID which maps to an external oauth app
	OauthAppLinkId string `protobuf:"bytes,1,opt,name=oauth_app_link_id,json=oauthAppLinkId,proto3" json:"oauth_app_link_id,omitempty"`
	// OrgID of the module
	OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// Public namespace of the module. This is for user display in ListRepoLinksResponse.
	// It is ignored in LinkRepoRequest.
	Namespace *string `protobuf:"bytes,3,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	// name of the module (just the name, not the dotted org:name form)
	ModuleName string `protobuf:"bytes,4,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// git repo in owner/repository form
	Repo string `protobuf:"bytes,5,opt,name=repo,proto3" json:"repo,omitempty"`
	// email of the viam user who created this
	ViamUser string `protobuf:"bytes,6,opt,name=viam_user,json=viamUser,proto3" json:"viam_user,omitempty"`
	// contains filtered or unexported fields
}

func (*RepoLink) Descriptor deprecated added in v0.1.335

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

Deprecated: Use RepoLink.ProtoReflect.Descriptor instead.

func (*RepoLink) GetModuleName added in v0.1.335

func (x *RepoLink) GetModuleName() string

func (*RepoLink) GetNamespace added in v0.1.335

func (x *RepoLink) GetNamespace() string

func (*RepoLink) GetOauthAppLinkId added in v0.1.335

func (x *RepoLink) GetOauthAppLinkId() string

func (*RepoLink) GetOrgId added in v0.1.335

func (x *RepoLink) GetOrgId() string

func (*RepoLink) GetRepo added in v0.1.335

func (x *RepoLink) GetRepo() string

func (*RepoLink) GetViamUser added in v0.1.335

func (x *RepoLink) GetViamUser() string

func (*RepoLink) ProtoMessage added in v0.1.335

func (*RepoLink) ProtoMessage()

func (*RepoLink) ProtoReflect added in v0.1.335

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

func (*RepoLink) Reset added in v0.1.335

func (x *RepoLink) Reset()

func (*RepoLink) String added in v0.1.335

func (x *RepoLink) String() string

type StartBuildRequest

type StartBuildRequest struct {

	// repo to build
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// optional git ref; defaults to 'main'
	Ref *string `protobuf:"bytes,2,opt,name=ref,proto3,oneof" json:"ref,omitempty"`
	// list of platforms to build
	Platforms []string `protobuf:"bytes,3,rep,name=platforms,proto3" json:"platforms,omitempty"`
	// module_id as prefix:name pair
	ModuleId string `protobuf:"bytes,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
	// version of the module to publish
	// must be valid semver2.0 string (ex: 1.2.3-rc0)
	ModuleVersion string `protobuf:"bytes,5,opt,name=module_version,json=moduleVersion,proto3" json:"module_version,omitempty"`
	// contains filtered or unexported fields
}

func (*StartBuildRequest) Descriptor deprecated

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

Deprecated: Use StartBuildRequest.ProtoReflect.Descriptor instead.

func (*StartBuildRequest) GetModuleId

func (x *StartBuildRequest) GetModuleId() string

func (*StartBuildRequest) GetModuleVersion

func (x *StartBuildRequest) GetModuleVersion() string

func (*StartBuildRequest) GetPlatforms

func (x *StartBuildRequest) GetPlatforms() []string

func (*StartBuildRequest) GetRef

func (x *StartBuildRequest) GetRef() string

func (*StartBuildRequest) GetRepo

func (x *StartBuildRequest) GetRepo() string

func (*StartBuildRequest) ProtoMessage

func (*StartBuildRequest) ProtoMessage()

func (*StartBuildRequest) ProtoReflect

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

func (*StartBuildRequest) Reset

func (x *StartBuildRequest) Reset()

func (*StartBuildRequest) String

func (x *StartBuildRequest) String() string

type StartBuildResponse

type StartBuildResponse struct {
	BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartBuildResponse) Descriptor deprecated

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

Deprecated: Use StartBuildResponse.ProtoReflect.Descriptor instead.

func (*StartBuildResponse) GetBuildId

func (x *StartBuildResponse) GetBuildId() string

func (*StartBuildResponse) ProtoMessage

func (*StartBuildResponse) ProtoMessage()

func (*StartBuildResponse) ProtoReflect

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

func (*StartBuildResponse) Reset

func (x *StartBuildResponse) Reset()

func (*StartBuildResponse) String

func (x *StartBuildResponse) String() string

type UnimplementedBuildServiceServer

type UnimplementedBuildServiceServer struct {
}

UnimplementedBuildServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBuildServiceServer) GetLogs

func (UnimplementedBuildServiceServer) LinkOrg added in v0.1.335

func (UnimplementedBuildServiceServer) LinkRepo added in v0.1.335

func (UnimplementedBuildServiceServer) ListJobs

func (UnimplementedBuildServiceServer) StartBuild

func (UnimplementedBuildServiceServer) UnlinkOrg added in v0.1.335

func (UnimplementedBuildServiceServer) UnlinkRepo added in v0.1.335

type UnlinkOrgRequest added in v0.1.335

type UnlinkOrgRequest struct {

	// viam internal ID which maps to an external oauth app
	OauthAppLinkId string `protobuf:"bytes,1,opt,name=oauth_app_link_id,json=oauthAppLinkId,proto3" json:"oauth_app_link_id,omitempty"`
	OrgId          string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlinkOrgRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use UnlinkOrgRequest.ProtoReflect.Descriptor instead.

func (*UnlinkOrgRequest) GetOauthAppLinkId added in v0.1.335

func (x *UnlinkOrgRequest) GetOauthAppLinkId() string

func (*UnlinkOrgRequest) GetOrgId added in v0.1.335

func (x *UnlinkOrgRequest) GetOrgId() string

func (*UnlinkOrgRequest) ProtoMessage added in v0.1.335

func (*UnlinkOrgRequest) ProtoMessage()

func (*UnlinkOrgRequest) ProtoReflect added in v0.1.335

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

func (*UnlinkOrgRequest) Reset added in v0.1.335

func (x *UnlinkOrgRequest) Reset()

func (*UnlinkOrgRequest) String added in v0.1.335

func (x *UnlinkOrgRequest) String() string

type UnlinkOrgResponse added in v0.1.335

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

func (*UnlinkOrgResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use UnlinkOrgResponse.ProtoReflect.Descriptor instead.

func (*UnlinkOrgResponse) ProtoMessage added in v0.1.335

func (*UnlinkOrgResponse) ProtoMessage()

func (*UnlinkOrgResponse) ProtoReflect added in v0.1.335

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

func (*UnlinkOrgResponse) Reset added in v0.1.335

func (x *UnlinkOrgResponse) Reset()

func (*UnlinkOrgResponse) String added in v0.1.335

func (x *UnlinkOrgResponse) String() string

type UnlinkRepoRequest added in v0.1.335

type UnlinkRepoRequest struct {
	RepoLinkId string `protobuf:"bytes,1,opt,name=repo_link_id,json=repoLinkId,proto3" json:"repo_link_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlinkRepoRequest) Descriptor deprecated added in v0.1.335

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

Deprecated: Use UnlinkRepoRequest.ProtoReflect.Descriptor instead.

func (*UnlinkRepoRequest) GetRepoLinkId added in v0.1.335

func (x *UnlinkRepoRequest) GetRepoLinkId() string

func (*UnlinkRepoRequest) ProtoMessage added in v0.1.335

func (*UnlinkRepoRequest) ProtoMessage()

func (*UnlinkRepoRequest) ProtoReflect added in v0.1.335

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

func (*UnlinkRepoRequest) Reset added in v0.1.335

func (x *UnlinkRepoRequest) Reset()

func (*UnlinkRepoRequest) String added in v0.1.335

func (x *UnlinkRepoRequest) String() string

type UnlinkRepoResponse added in v0.1.335

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

func (*UnlinkRepoResponse) Descriptor deprecated added in v0.1.335

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

Deprecated: Use UnlinkRepoResponse.ProtoReflect.Descriptor instead.

func (*UnlinkRepoResponse) ProtoMessage added in v0.1.335

func (*UnlinkRepoResponse) ProtoMessage()

func (*UnlinkRepoResponse) ProtoReflect added in v0.1.335

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

func (*UnlinkRepoResponse) Reset added in v0.1.335

func (x *UnlinkRepoResponse) Reset()

func (*UnlinkRepoResponse) String added in v0.1.335

func (x *UnlinkRepoResponse) String() string

type UnsafeBuildServiceServer

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

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

Jump to

Keyboard shortcuts

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