source_context_proto_go_src

package
v0.0.0-...-2435b8f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package source_context_proto_go_src is a generated protocol buffer package.

It is generated from these files:

shipshape/proto/source_context.proto

It has these top-level messages:

SourceContext
ProjectRepoId
RepoId
CloudRepoSourceContext
CloudWorkspaceId
CloudWorkspaceSourceContext
GerritSourceContext

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRepoSourceContext

type CloudRepoSourceContext struct {
	RepoId           *RepoId `protobuf:"bytes,1,opt,name=repo_id" json:"repo_id,omitempty"`
	RevisionId       *string `protobuf:"bytes,2,opt,name=revision_id" json:"revision_id,omitempty"`
	AliasName        *string `protobuf:"bytes,3,opt,name=alias_name" json:"alias_name,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform). The revision can be specified by revision id (hash) or alias name. (An alias is a branch, tag or Mercurial bookmark.)

func (*CloudRepoSourceContext) GetAliasName

func (m *CloudRepoSourceContext) GetAliasName() string

func (*CloudRepoSourceContext) GetRepoId

func (m *CloudRepoSourceContext) GetRepoId() *RepoId

func (*CloudRepoSourceContext) GetRevisionId

func (m *CloudRepoSourceContext) GetRevisionId() string

func (*CloudRepoSourceContext) ProtoMessage

func (*CloudRepoSourceContext) ProtoMessage()

func (*CloudRepoSourceContext) Reset

func (m *CloudRepoSourceContext) Reset()

func (*CloudRepoSourceContext) String

func (m *CloudRepoSourceContext) String() string

type CloudWorkspaceId

type CloudWorkspaceId struct {
	// The ID of the repo containing the workspace.
	RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id" json:"repo_id,omitempty"`
	// The unique name of the workspace within the repo.  This is the name
	// chosen by the client in the Source API's CreateWorkspace method.
	Name             *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.

func (*CloudWorkspaceId) GetName

func (m *CloudWorkspaceId) GetName() string

func (*CloudWorkspaceId) GetRepoId

func (m *CloudWorkspaceId) GetRepoId() *RepoId

func (*CloudWorkspaceId) ProtoMessage

func (*CloudWorkspaceId) ProtoMessage()

func (*CloudWorkspaceId) Reset

func (m *CloudWorkspaceId) Reset()

func (*CloudWorkspaceId) String

func (m *CloudWorkspaceId) String() string

type CloudWorkspaceSourceContext

type CloudWorkspaceSourceContext struct {
	// The ID of the workspace.
	WorkspaceId *CloudWorkspaceId `protobuf:"bytes,1,opt,name=workspace_id" json:"workspace_id,omitempty"`
	// The ID of the snapshot.
	// An empty snapshot_id refers to the most recent snapshot.
	SnapshotId       *string `protobuf:"bytes,2,opt,name=snapshot_id" json:"snapshot_id,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.

func (*CloudWorkspaceSourceContext) GetSnapshotId

func (m *CloudWorkspaceSourceContext) GetSnapshotId() string

func (*CloudWorkspaceSourceContext) GetWorkspaceId

func (m *CloudWorkspaceSourceContext) GetWorkspaceId() *CloudWorkspaceId

func (*CloudWorkspaceSourceContext) ProtoMessage

func (*CloudWorkspaceSourceContext) ProtoMessage()

func (*CloudWorkspaceSourceContext) Reset

func (m *CloudWorkspaceSourceContext) Reset()

func (*CloudWorkspaceSourceContext) String

func (m *CloudWorkspaceSourceContext) String() string

type GerritSourceContext

type GerritSourceContext struct {
	// The URI of a running Gerrit instance.
	HostUri *string `protobuf:"bytes,1,opt,name=host_uri" json:"host_uri,omitempty"`
	// The full project name within the host. Projects may be nested, so
	// "project/subproject" is a valid project name.
	// The "repo name" is hostURI/project.
	GerritProject *string `protobuf:"bytes,2,opt,name=gerrit_project" json:"gerrit_project,omitempty"`
	// A revision in a Gerrit project can be identified by either its revision ID
	// or its alias name.
	// A revision (commit) ID.
	RevisionId *string `protobuf:"bytes,3,opt,name=revision_id" json:"revision_id,omitempty"`
	// The name of an alias (branch, tag, etc.).
	AliasName        *string `protobuf:"bytes,4,opt,name=alias_name" json:"alias_name,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A SourceContext referring to a Gerrit project.

func (*GerritSourceContext) GetAliasName

func (m *GerritSourceContext) GetAliasName() string

func (*GerritSourceContext) GetGerritProject

func (m *GerritSourceContext) GetGerritProject() string

func (*GerritSourceContext) GetHostUri

func (m *GerritSourceContext) GetHostUri() string

func (*GerritSourceContext) GetRevisionId

func (m *GerritSourceContext) GetRevisionId() string

func (*GerritSourceContext) ProtoMessage

func (*GerritSourceContext) ProtoMessage()

func (*GerritSourceContext) Reset

func (m *GerritSourceContext) Reset()

func (*GerritSourceContext) String

func (m *GerritSourceContext) String() string

type ProjectRepoId

type ProjectRepoId struct {
	// The ID of the project.
	ProjectId *string `protobuf:"bytes,1,opt,name=project_id" json:"project_id,omitempty"`
	// The name of the repo. Leave empty for the default repo.
	RepoName         *string `protobuf:"bytes,2,opt,name=repo_name" json:"repo_name,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.

func (*ProjectRepoId) GetProjectId

func (m *ProjectRepoId) GetProjectId() string

func (*ProjectRepoId) GetRepoName

func (m *ProjectRepoId) GetRepoName() string

func (*ProjectRepoId) ProtoMessage

func (*ProjectRepoId) ProtoMessage()

func (*ProjectRepoId) Reset

func (m *ProjectRepoId) Reset()

func (*ProjectRepoId) String

func (m *ProjectRepoId) String() string

type RepoId

type RepoId struct {
	// A combination of a project ID and a repo name.
	ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id" json:"project_repo_id,omitempty"`
	// A server-assigned, globally unique identifier.
	Uid              *string `protobuf:"bytes,2,opt,name=uid" json:"uid,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A unique identifier for a cloud repo. A cloud repository can be identified by either its project ID and repository name combination, or its globally unique identifier.

func (*RepoId) GetProjectRepoId

func (m *RepoId) GetProjectRepoId() *ProjectRepoId

func (*RepoId) GetUid

func (m *RepoId) GetUid() string

func (*RepoId) ProtoMessage

func (*RepoId) ProtoMessage()

func (*RepoId) Reset

func (m *RepoId) Reset()

func (*RepoId) String

func (m *RepoId) String() string

type SourceContext

type SourceContext struct {
	// A SourceContext referring to a revision in a cloud repo.
	CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo" json:"cloud_repo,omitempty"`
	// A SourceContext referring to a snapshot in a cloud workspace.
	CloudWorkspace *CloudWorkspaceSourceContext `protobuf:"bytes,2,opt,name=cloud_workspace" json:"cloud_workspace,omitempty"`
	// A SourceContext referring to a Gerrit project.
	Gerrit           *GerritSourceContext `protobuf:"bytes,3,opt,name=gerrit" json:"gerrit,omitempty"`
	XXX_unrecognized []byte               `json:"-"`
}

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. A SourceContext can refer to any one of the types of repositories below.

func (*SourceContext) GetCloudRepo

func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext

func (*SourceContext) GetCloudWorkspace

func (m *SourceContext) GetCloudWorkspace() *CloudWorkspaceSourceContext

func (*SourceContext) GetGerrit

func (m *SourceContext) GetGerrit() *GerritSourceContext

func (*SourceContext) ProtoMessage

func (*SourceContext) ProtoMessage()

func (*SourceContext) Reset

func (m *SourceContext) Reset()

func (*SourceContext) String

func (m *SourceContext) String() string

Jump to

Keyboard shortcuts

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