Documentation
¶
Index ¶
- Variables
- type AliasContext
- func (*AliasContext) Descriptor() ([]byte, []int)
- func (m *AliasContext) GetKind() AliasContext_Kind
- func (m *AliasContext) GetName() string
- func (*AliasContext) ProtoMessage()
- func (m *AliasContext) Reset()
- func (m *AliasContext) String() string
- func (m *AliasContext) XXX_DiscardUnknown()
- func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AliasContext) XXX_Merge(src proto.Message)
- func (m *AliasContext) XXX_Size() int
- func (m *AliasContext) XXX_Unmarshal(b []byte) error
- type AliasContext_Kind
- type CloudRepoSourceContext
- func (*CloudRepoSourceContext) Descriptor() ([]byte, []int)
- func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext
- func (m *CloudRepoSourceContext) GetRepoId() *RepoId
- func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision
- func (m *CloudRepoSourceContext) GetRevisionId() string
- func (*CloudRepoSourceContext) ProtoMessage()
- func (m *CloudRepoSourceContext) Reset()
- func (m *CloudRepoSourceContext) String() string
- func (m *CloudRepoSourceContext) XXX_DiscardUnknown()
- func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message)
- func (*CloudRepoSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *CloudRepoSourceContext) XXX_Size() int
- func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error
- type CloudRepoSourceContext_AliasContext
- type CloudRepoSourceContext_RevisionId
- type GerritSourceContext
- func (*GerritSourceContext) Descriptor() ([]byte, []int)
- func (m *GerritSourceContext) GetAliasContext() *AliasContext
- func (m *GerritSourceContext) GetGerritProject() string
- func (m *GerritSourceContext) GetHostUri() string
- func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision
- func (m *GerritSourceContext) GetRevisionId() string
- func (*GerritSourceContext) ProtoMessage()
- func (m *GerritSourceContext) Reset()
- func (m *GerritSourceContext) String() string
- func (m *GerritSourceContext) XXX_DiscardUnknown()
- func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GerritSourceContext) XXX_Merge(src proto.Message)
- func (*GerritSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *GerritSourceContext) XXX_Size() int
- func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error
- type GerritSourceContext_AliasContext
- type GerritSourceContext_RevisionId
- type GitSourceContext
- func (*GitSourceContext) Descriptor() ([]byte, []int)
- func (m *GitSourceContext) GetRevisionId() string
- func (m *GitSourceContext) GetUrl() string
- func (*GitSourceContext) ProtoMessage()
- func (m *GitSourceContext) Reset()
- func (m *GitSourceContext) String() string
- func (m *GitSourceContext) XXX_DiscardUnknown()
- func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GitSourceContext) XXX_Merge(src proto.Message)
- func (m *GitSourceContext) XXX_Size() int
- func (m *GitSourceContext) XXX_Unmarshal(b []byte) error
- type ProjectRepoId
- func (*ProjectRepoId) Descriptor() ([]byte, []int)
- func (m *ProjectRepoId) GetProjectId() string
- func (m *ProjectRepoId) GetRepoName() string
- func (*ProjectRepoId) ProtoMessage()
- func (m *ProjectRepoId) Reset()
- func (m *ProjectRepoId) String() string
- func (m *ProjectRepoId) XXX_DiscardUnknown()
- func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProjectRepoId) XXX_Merge(src proto.Message)
- func (m *ProjectRepoId) XXX_Size() int
- func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error
- type RepoId
- func (*RepoId) Descriptor() ([]byte, []int)
- func (m *RepoId) GetId() isRepoId_Id
- func (m *RepoId) GetProjectRepoId() *ProjectRepoId
- func (m *RepoId) GetUid() string
- func (*RepoId) ProtoMessage()
- func (m *RepoId) Reset()
- func (m *RepoId) String() string
- func (m *RepoId) XXX_DiscardUnknown()
- func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RepoId) XXX_Merge(src proto.Message)
- func (*RepoId) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *RepoId) XXX_Size() int
- func (m *RepoId) XXX_Unmarshal(b []byte) error
- type RepoId_ProjectRepoId
- type RepoId_Uid
- type SourceContext
- func (*SourceContext) Descriptor() ([]byte, []int)
- func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext
- func (m *SourceContext) GetContext() isSourceContext_Context
- func (m *SourceContext) GetGerrit() *GerritSourceContext
- func (m *SourceContext) GetGit() *GitSourceContext
- func (m *SourceContext) GetLabels() map[string]string
- func (*SourceContext) ProtoMessage()
- func (m *SourceContext) Reset()
- func (m *SourceContext) String() string
- func (m *SourceContext) XXX_DiscardUnknown()
- func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SourceContext) XXX_Merge(src proto.Message)
- func (*SourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *SourceContext) XXX_Size() int
- func (m *SourceContext) XXX_Unmarshal(b []byte) error
- type SourceContext_CloudRepo
- type SourceContext_Gerrit
- type SourceContext_Git
Constants ¶
This section is empty.
Variables ¶
var AliasContext_Kind_name = map[int32]string{
0: "KIND_UNSPECIFIED",
1: "FIXED",
2: "MOVABLE",
4: "OTHER",
}
var AliasContext_Kind_value = map[string]int32{
"KIND_UNSPECIFIED": 0,
"FIXED": 1,
"MOVABLE": 2,
"OTHER": 4,
}
Functions ¶
This section is empty.
Types ¶
type AliasContext ¶
type AliasContext struct { // The alias kind. Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=grafeas.v1beta1.source.AliasContext_Kind" json:"kind,omitempty"` // The alias name. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An alias to a repo revision.
func (*AliasContext) Descriptor ¶
func (*AliasContext) Descriptor() ([]byte, []int)
func (*AliasContext) GetKind ¶
func (m *AliasContext) GetKind() AliasContext_Kind
func (*AliasContext) GetName ¶
func (m *AliasContext) GetName() string
func (*AliasContext) ProtoMessage ¶
func (*AliasContext) ProtoMessage()
func (*AliasContext) Reset ¶
func (m *AliasContext) Reset()
func (*AliasContext) String ¶
func (m *AliasContext) String() string
func (*AliasContext) XXX_DiscardUnknown ¶
func (m *AliasContext) XXX_DiscardUnknown()
func (*AliasContext) XXX_Marshal ¶
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AliasContext) XXX_Merge ¶
func (dst *AliasContext) XXX_Merge(src proto.Message)
func (*AliasContext) XXX_Size ¶
func (m *AliasContext) XXX_Size() int
func (*AliasContext) XXX_Unmarshal ¶
func (m *AliasContext) XXX_Unmarshal(b []byte) error
type AliasContext_Kind ¶
type AliasContext_Kind int32
The type of an alias.
const ( // Unknown. AliasContext_KIND_UNSPECIFIED AliasContext_Kind = 0 // Git tag. AliasContext_FIXED AliasContext_Kind = 1 // Git branch. AliasContext_MOVABLE AliasContext_Kind = 2 // Used to specify non-standard aliases. For example, if a Git repo has a // ref named "refs/foo/bar". AliasContext_OTHER AliasContext_Kind = 4 )
func (AliasContext_Kind) EnumDescriptor ¶
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int)
func (AliasContext_Kind) String ¶
func (x AliasContext_Kind) String() string
type CloudRepoSourceContext ¶
type CloudRepoSourceContext struct { // The ID of the repo. RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` // A revision in a Cloud Repo can be identified by either its revision ID or // its alias. // // Types that are valid to be assigned to Revision: // *CloudRepoSourceContext_RevisionId // *CloudRepoSourceContext_AliasContext Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
func (*CloudRepoSourceContext) Descriptor ¶
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int)
func (*CloudRepoSourceContext) GetAliasContext ¶
func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext
func (*CloudRepoSourceContext) GetRepoId ¶
func (m *CloudRepoSourceContext) GetRepoId() *RepoId
func (*CloudRepoSourceContext) GetRevision ¶
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision
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
func (*CloudRepoSourceContext) XXX_DiscardUnknown ¶
func (m *CloudRepoSourceContext) XXX_DiscardUnknown()
func (*CloudRepoSourceContext) XXX_Marshal ¶
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CloudRepoSourceContext) XXX_Merge ¶
func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message)
func (*CloudRepoSourceContext) XXX_OneofFuncs ¶
func (*CloudRepoSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*CloudRepoSourceContext) XXX_Size ¶
func (m *CloudRepoSourceContext) XXX_Size() int
func (*CloudRepoSourceContext) XXX_Unmarshal ¶
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error
type CloudRepoSourceContext_AliasContext ¶
type CloudRepoSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
type CloudRepoSourceContext_RevisionId ¶
type CloudRepoSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GerritSourceContext ¶
type GerritSourceContext struct { // The URI of a running Gerrit instance. HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" 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 the // hostURI/project. GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"` // A revision in a Gerrit project can be identified by either its revision ID // or its alias. // // Types that are valid to be assigned to Revision: // *GerritSourceContext_RevisionId // *GerritSourceContext_AliasContext Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A SourceContext referring to a Gerrit project.
func (*GerritSourceContext) Descriptor ¶
func (*GerritSourceContext) Descriptor() ([]byte, []int)
func (*GerritSourceContext) GetAliasContext ¶
func (m *GerritSourceContext) GetAliasContext() *AliasContext
func (*GerritSourceContext) GetGerritProject ¶
func (m *GerritSourceContext) GetGerritProject() string
func (*GerritSourceContext) GetHostUri ¶
func (m *GerritSourceContext) GetHostUri() string
func (*GerritSourceContext) GetRevision ¶
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision
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
func (*GerritSourceContext) XXX_DiscardUnknown ¶
func (m *GerritSourceContext) XXX_DiscardUnknown()
func (*GerritSourceContext) XXX_Marshal ¶
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GerritSourceContext) XXX_Merge ¶
func (dst *GerritSourceContext) XXX_Merge(src proto.Message)
func (*GerritSourceContext) XXX_OneofFuncs ¶
func (*GerritSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*GerritSourceContext) XXX_Size ¶
func (m *GerritSourceContext) XXX_Size() int
func (*GerritSourceContext) XXX_Unmarshal ¶
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error
type GerritSourceContext_AliasContext ¶
type GerritSourceContext_AliasContext struct {
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}
type GerritSourceContext_RevisionId ¶
type GerritSourceContext_RevisionId struct {
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}
type GitSourceContext ¶
type GitSourceContext struct { // Git repository URL. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Git commit hash. RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).
func (*GitSourceContext) Descriptor ¶
func (*GitSourceContext) Descriptor() ([]byte, []int)
func (*GitSourceContext) GetRevisionId ¶
func (m *GitSourceContext) GetRevisionId() string
func (*GitSourceContext) GetUrl ¶
func (m *GitSourceContext) GetUrl() string
func (*GitSourceContext) ProtoMessage ¶
func (*GitSourceContext) ProtoMessage()
func (*GitSourceContext) Reset ¶
func (m *GitSourceContext) Reset()
func (*GitSourceContext) String ¶
func (m *GitSourceContext) String() string
func (*GitSourceContext) XXX_DiscardUnknown ¶
func (m *GitSourceContext) XXX_DiscardUnknown()
func (*GitSourceContext) XXX_Marshal ¶
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GitSourceContext) XXX_Merge ¶
func (dst *GitSourceContext) XXX_Merge(src proto.Message)
func (*GitSourceContext) XXX_Size ¶
func (m *GitSourceContext) XXX_Size() int
func (*GitSourceContext) XXX_Unmarshal ¶
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error
type ProjectRepoId ¶
type ProjectRepoId struct { // The ID of the project. ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" 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=repoName,proto3" json:"repo_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `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) Descriptor ¶
func (*ProjectRepoId) Descriptor() ([]byte, []int)
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
func (*ProjectRepoId) XXX_DiscardUnknown ¶
func (m *ProjectRepoId) XXX_DiscardUnknown()
func (*ProjectRepoId) XXX_Marshal ¶
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProjectRepoId) XXX_Merge ¶
func (dst *ProjectRepoId) XXX_Merge(src proto.Message)
func (*ProjectRepoId) XXX_Size ¶
func (m *ProjectRepoId) XXX_Size() int
func (*ProjectRepoId) XXX_Unmarshal ¶
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error
type RepoId ¶
type RepoId struct { // A cloud repo can be identified by either its project ID and repository name // combination, or its globally unique identifier. // // Types that are valid to be assigned to Id: // *RepoId_ProjectRepoId // *RepoId_Uid Id isRepoId_Id `protobuf_oneof:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A unique identifier for a Cloud Repo.
func (*RepoId) Descriptor ¶
func (*RepoId) GetProjectRepoId ¶
func (m *RepoId) GetProjectRepoId() *ProjectRepoId
func (*RepoId) ProtoMessage ¶
func (*RepoId) ProtoMessage()
func (*RepoId) XXX_DiscardUnknown ¶
func (m *RepoId) XXX_DiscardUnknown()
func (*RepoId) XXX_Marshal ¶
func (*RepoId) XXX_OneofFuncs ¶
func (*RepoId) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*RepoId) XXX_Unmarshal ¶
type RepoId_ProjectRepoId ¶
type RepoId_ProjectRepoId struct {
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}
type RepoId_Uid ¶
type RepoId_Uid struct {
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
}
type SourceContext ¶
type SourceContext struct { // A SourceContext can refer any one of the following types of repositories. // // Types that are valid to be assigned to Context: // *SourceContext_CloudRepo // *SourceContext_Gerrit // *SourceContext_Git Context isSourceContext_Context `protobuf_oneof:"context"` // Labels with user defined metadata. Labels map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `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.
func (*SourceContext) Descriptor ¶
func (*SourceContext) Descriptor() ([]byte, []int)
func (*SourceContext) GetCloudRepo ¶
func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext
func (*SourceContext) GetContext ¶
func (m *SourceContext) GetContext() isSourceContext_Context
func (*SourceContext) GetGerrit ¶
func (m *SourceContext) GetGerrit() *GerritSourceContext
func (*SourceContext) GetGit ¶
func (m *SourceContext) GetGit() *GitSourceContext
func (*SourceContext) GetLabels ¶
func (m *SourceContext) GetLabels() map[string]string
func (*SourceContext) ProtoMessage ¶
func (*SourceContext) ProtoMessage()
func (*SourceContext) Reset ¶
func (m *SourceContext) Reset()
func (*SourceContext) String ¶
func (m *SourceContext) String() string
func (*SourceContext) XXX_DiscardUnknown ¶
func (m *SourceContext) XXX_DiscardUnknown()
func (*SourceContext) XXX_Marshal ¶
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SourceContext) XXX_Merge ¶
func (dst *SourceContext) XXX_Merge(src proto.Message)
func (*SourceContext) XXX_OneofFuncs ¶
func (*SourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*SourceContext) XXX_Size ¶
func (m *SourceContext) XXX_Size() int
func (*SourceContext) XXX_Unmarshal ¶
func (m *SourceContext) XXX_Unmarshal(b []byte) error
type SourceContext_CloudRepo ¶
type SourceContext_CloudRepo struct {
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}
type SourceContext_Gerrit ¶
type SourceContext_Gerrit struct {
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
}
type SourceContext_Git ¶
type SourceContext_Git struct {
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"`
}