proto

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DepEcosystem_name = map[int32]string{
		0: "DEP_ECOSYSTEM_UNSPECIFIED",
		1: "DEP_ECOSYSTEM_NPM",
		2: "DEP_ECOSYSTEM_GO",
		3: "DEP_ECOSYSTEM_PYPI",
	}
	DepEcosystem_value = map[string]int32{
		"DEP_ECOSYSTEM_UNSPECIFIED": 0,
		"DEP_ECOSYSTEM_NPM":         1,
		"DEP_ECOSYSTEM_GO":          2,
		"DEP_ECOSYSTEM_PYPI":        3,
	}
)

Enum value maps for DepEcosystem.

View Source
var File_internal_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DepEcosystem

type DepEcosystem int32
const (
	DepEcosystem_DEP_ECOSYSTEM_UNSPECIFIED DepEcosystem = 0
	DepEcosystem_DEP_ECOSYSTEM_NPM         DepEcosystem = 1
	DepEcosystem_DEP_ECOSYSTEM_GO          DepEcosystem = 2
	DepEcosystem_DEP_ECOSYSTEM_PYPI        DepEcosystem = 3
)

func (DepEcosystem) AsString

func (ecosystem DepEcosystem) AsString() string

AsString returns the string representation of the DepEcosystem

func (DepEcosystem) Descriptor

func (DepEcosystem) Enum

func (x DepEcosystem) Enum() *DepEcosystem

func (DepEcosystem) EnumDescriptor deprecated

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

Deprecated: Use DepEcosystem.Descriptor instead.

func (DepEcosystem) Number

func (DepEcosystem) String

func (x DepEcosystem) String() string

func (DepEcosystem) Type

type Dependency

type Dependency struct {
	Ecosystem DepEcosystem `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=internal.DepEcosystem" json:"ecosystem,omitempty"`
	Name      string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version   string       `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Dependency) Descriptor deprecated

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

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetEcosystem

func (x *Dependency) GetEcosystem() DepEcosystem

func (*Dependency) GetName

func (x *Dependency) GetName() string

func (*Dependency) GetVersion

func (x *Dependency) GetVersion() string

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect

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

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

type PrContents

type PrContents struct {
	Pr    *PullRequest       `protobuf:"bytes,1,opt,name=pr,proto3" json:"pr,omitempty"`
	Files []*PrContents_File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*PrContents) Descriptor deprecated

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

Deprecated: Use PrContents.ProtoReflect.Descriptor instead.

func (*PrContents) GetFiles

func (x *PrContents) GetFiles() []*PrContents_File

func (*PrContents) GetPr

func (x *PrContents) GetPr() *PullRequest

func (*PrContents) ProtoMessage

func (*PrContents) ProtoMessage()

func (*PrContents) ProtoReflect

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

func (*PrContents) Reset

func (x *PrContents) Reset()

func (*PrContents) String

func (x *PrContents) String() string

type PrContents_File

type PrContents_File struct {
	Name         string                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FilePatchUrl string                  `protobuf:"bytes,2,opt,name=file_patch_url,json=filePatchUrl,proto3" json:"file_patch_url,omitempty"`
	PatchLines   []*PrContents_File_Line `protobuf:"bytes,3,rep,name=patch_lines,json=patchLines,proto3" json:"patch_lines,omitempty"`
	// contains filtered or unexported fields
}

func (*PrContents_File) Descriptor deprecated

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

Deprecated: Use PrContents_File.ProtoReflect.Descriptor instead.

func (*PrContents_File) GetFilePatchUrl

func (x *PrContents_File) GetFilePatchUrl() string

func (*PrContents_File) GetName

func (x *PrContents_File) GetName() string

func (*PrContents_File) GetPatchLines

func (x *PrContents_File) GetPatchLines() []*PrContents_File_Line

func (*PrContents_File) ProtoMessage

func (*PrContents_File) ProtoMessage()

func (*PrContents_File) ProtoReflect

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

func (*PrContents_File) Reset

func (x *PrContents_File) Reset()

func (*PrContents_File) String

func (x *PrContents_File) String() string

type PrContents_File_Line

type PrContents_File_Line struct {

	// Deliberately left as an int32: a diff with more than 2^31 lines
	// could lead to various problems while processing.
	LineNumber int32  `protobuf:"varint,1,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
	Content    string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*PrContents_File_Line) Descriptor deprecated

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

Deprecated: Use PrContents_File_Line.ProtoReflect.Descriptor instead.

func (*PrContents_File_Line) GetContent

func (x *PrContents_File_Line) GetContent() string

func (*PrContents_File_Line) GetLineNumber

func (x *PrContents_File_Line) GetLineNumber() int32

func (*PrContents_File_Line) ProtoMessage

func (*PrContents_File_Line) ProtoMessage()

func (*PrContents_File_Line) ProtoReflect

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

func (*PrContents_File_Line) Reset

func (x *PrContents_File_Line) Reset()

func (*PrContents_File_Line) String

func (x *PrContents_File_Line) String() string

type PrDependencies

type PrDependencies struct {
	Pr   *PullRequest                           `protobuf:"bytes,1,opt,name=pr,proto3" json:"pr,omitempty"`
	Deps []*PrDependencies_ContextualDependency `protobuf:"bytes,2,rep,name=deps,proto3" json:"deps,omitempty"`
	// contains filtered or unexported fields
}

func (*PrDependencies) Descriptor deprecated

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

Deprecated: Use PrDependencies.ProtoReflect.Descriptor instead.

func (*PrDependencies) GetDeps

func (*PrDependencies) GetPr

func (x *PrDependencies) GetPr() *PullRequest

func (*PrDependencies) ProtoMessage

func (*PrDependencies) ProtoMessage()

func (*PrDependencies) ProtoReflect

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

func (*PrDependencies) Reset

func (x *PrDependencies) Reset()

func (*PrDependencies) String

func (x *PrDependencies) String() string

type PrDependencies_ContextualDependency

type PrDependencies_ContextualDependency struct {
	Dep  *Dependency                                    `protobuf:"bytes,1,opt,name=dep,proto3" json:"dep,omitempty"`
	File *PrDependencies_ContextualDependency_FilePatch `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*PrDependencies_ContextualDependency) Descriptor deprecated

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

Deprecated: Use PrDependencies_ContextualDependency.ProtoReflect.Descriptor instead.

func (*PrDependencies_ContextualDependency) GetDep

func (*PrDependencies_ContextualDependency) GetFile

func (*PrDependencies_ContextualDependency) ProtoMessage

func (*PrDependencies_ContextualDependency) ProtoMessage()

func (*PrDependencies_ContextualDependency) ProtoReflect

func (*PrDependencies_ContextualDependency) Reset

func (*PrDependencies_ContextualDependency) String

type PrDependencies_ContextualDependency_FilePatch

type PrDependencies_ContextualDependency_FilePatch struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                         // file changed, e.g. package-lock.json
	PatchUrl string `protobuf:"bytes,2,opt,name=patch_url,json=patchUrl,proto3" json:"patch_url,omitempty"` // points to the the raw patchfile
	// contains filtered or unexported fields
}

func (*PrDependencies_ContextualDependency_FilePatch) Descriptor deprecated

Deprecated: Use PrDependencies_ContextualDependency_FilePatch.ProtoReflect.Descriptor instead.

func (*PrDependencies_ContextualDependency_FilePatch) GetName

func (*PrDependencies_ContextualDependency_FilePatch) GetPatchUrl

func (*PrDependencies_ContextualDependency_FilePatch) ProtoMessage

func (*PrDependencies_ContextualDependency_FilePatch) ProtoReflect

func (*PrDependencies_ContextualDependency_FilePatch) Reset

func (*PrDependencies_ContextualDependency_FilePatch) String

type PullRequest added in v0.0.77

type PullRequest struct {
	Url       string      `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`                              // The full URL to the PR
	CommitSha string      `protobuf:"bytes,2,opt,name=commit_sha,json=commitSha,proto3" json:"commit_sha,omitempty"` // Commit SHA of the PR HEAD. Will be useful to submit a review
	Number    int64       `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`                       // The sequential PR number (not the DB PK!)
	RepoOwner string      `protobuf:"bytes,4,opt,name=repo_owner,json=repoOwner,proto3" json:"repo_owner,omitempty"` // The owner of the repo, will be used to submit a review
	RepoName  string      `protobuf:"bytes,5,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`    // The name of the repo, will be used to submit a review
	AuthorId  int64       `protobuf:"varint,6,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"`   // The author of the PR, will be used to check if we can request changes
	Action    string      `protobuf:"bytes,7,opt,name=action,proto3" json:"action,omitempty"`                        // The action that triggered the webhook
	Context   *v1.Context `protobuf:"bytes,8,opt,name=context,proto3" json:"context,omitempty"`
	// properties is a map of properties of the entity.
	Properties     *structpb.Struct `protobuf:"bytes,9,opt,name=properties,proto3" json:"properties,omitempty"`
	BaseCloneUrl   string           `protobuf:"bytes,10,opt,name=base_clone_url,json=baseCloneUrl,proto3" json:"base_clone_url,omitempty"`       // URL used to clone the base repository
	TargetCloneUrl string           `protobuf:"bytes,11,opt,name=target_clone_url,json=targetCloneUrl,proto3" json:"target_clone_url,omitempty"` // URL used to clone the target repository
	BaseRef        string           `protobuf:"bytes,12,opt,name=base_ref,json=baseRef,proto3" json:"base_ref,omitempty"`                        // The base ref of the PR
	TargetRef      string           `protobuf:"bytes,13,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"`                  // The target ref of the PR
	// contains filtered or unexported fields
}

func (*PullRequest) Descriptor deprecated added in v0.0.77

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

Deprecated: Use PullRequest.ProtoReflect.Descriptor instead.

func (*PullRequest) GetAction added in v0.0.77

func (x *PullRequest) GetAction() string

func (*PullRequest) GetAuthorId added in v0.0.77

func (x *PullRequest) GetAuthorId() int64

func (*PullRequest) GetBaseCloneUrl added in v0.0.77

func (x *PullRequest) GetBaseCloneUrl() string

func (*PullRequest) GetBaseRef added in v0.0.77

func (x *PullRequest) GetBaseRef() string

func (*PullRequest) GetCommitSha added in v0.0.77

func (x *PullRequest) GetCommitSha() string

func (*PullRequest) GetContext added in v0.0.77

func (x *PullRequest) GetContext() *v1.Context

func (*PullRequest) GetNumber added in v0.0.77

func (x *PullRequest) GetNumber() int64

func (*PullRequest) GetProperties added in v0.0.77

func (x *PullRequest) GetProperties() *structpb.Struct

func (*PullRequest) GetRepoName added in v0.0.77

func (x *PullRequest) GetRepoName() string

func (*PullRequest) GetRepoOwner added in v0.0.77

func (x *PullRequest) GetRepoOwner() string

func (*PullRequest) GetTargetCloneUrl added in v0.0.77

func (x *PullRequest) GetTargetCloneUrl() string

func (*PullRequest) GetTargetRef added in v0.0.77

func (x *PullRequest) GetTargetRef() string

func (*PullRequest) GetUrl added in v0.0.77

func (x *PullRequest) GetUrl() string

func (*PullRequest) ProtoMessage added in v0.0.77

func (*PullRequest) ProtoMessage()

func (*PullRequest) ProtoReflect added in v0.0.77

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

func (*PullRequest) Reset added in v0.0.77

func (x *PullRequest) Reset()

func (*PullRequest) String added in v0.0.77

func (x *PullRequest) String() string

type SelectorArtifact

type SelectorArtifact struct {

	// the full name of the artifact, e.g. mindersec/minder-server
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the provider of the artifact
	Provider *SelectorProvider `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	// the type of the artifact, e.g. "container"
	Type       string           `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Properties *structpb.Struct `protobuf:"bytes,5,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectorArtifact) Descriptor deprecated

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

Deprecated: Use SelectorArtifact.ProtoReflect.Descriptor instead.

func (*SelectorArtifact) GetName

func (x *SelectorArtifact) GetName() string

func (*SelectorArtifact) GetProperties

func (x *SelectorArtifact) GetProperties() *structpb.Struct

func (*SelectorArtifact) GetProvider

func (x *SelectorArtifact) GetProvider() *SelectorProvider

func (*SelectorArtifact) GetType

func (x *SelectorArtifact) GetType() string

func (*SelectorArtifact) ProtoMessage

func (*SelectorArtifact) ProtoMessage()

func (*SelectorArtifact) ProtoReflect

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

func (*SelectorArtifact) Reset

func (x *SelectorArtifact) Reset()

func (*SelectorArtifact) String

func (x *SelectorArtifact) String() string

type SelectorEntity

type SelectorEntity struct {

	// one of repository, pull_request, artifact (see oneof entity)
	EntityType v1.Entity `protobuf:"varint,1,opt,name=entity_type,json=entityType,proto3,enum=minder.v1.Entity" json:"entity_type,omitempty"`
	// the name of the entity, same as the name in the entity message
	Name     string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Provider *SelectorProvider `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	// Types that are assignable to Entity:
	//
	//	*SelectorEntity_Repository
	//	*SelectorEntity_Artifact
	//	*SelectorEntity_PullRequest
	Entity isSelectorEntity_Entity `protobuf_oneof:"entity"`
	// contains filtered or unexported fields
}

func (*SelectorEntity) Descriptor deprecated

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

Deprecated: Use SelectorEntity.ProtoReflect.Descriptor instead.

func (*SelectorEntity) GetArtifact

func (x *SelectorEntity) GetArtifact() *SelectorArtifact

func (*SelectorEntity) GetEntity

func (m *SelectorEntity) GetEntity() isSelectorEntity_Entity

func (*SelectorEntity) GetEntityType

func (x *SelectorEntity) GetEntityType() v1.Entity

func (*SelectorEntity) GetName

func (x *SelectorEntity) GetName() string

func (*SelectorEntity) GetProvider

func (x *SelectorEntity) GetProvider() *SelectorProvider

func (*SelectorEntity) GetPullRequest

func (x *SelectorEntity) GetPullRequest() *SelectorPullRequest

func (*SelectorEntity) GetRepository

func (x *SelectorEntity) GetRepository() *SelectorRepository

func (*SelectorEntity) ProtoMessage

func (*SelectorEntity) ProtoMessage()

func (*SelectorEntity) ProtoReflect

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

func (*SelectorEntity) Reset

func (x *SelectorEntity) Reset()

func (*SelectorEntity) String

func (x *SelectorEntity) String() string

type SelectorEntity_Artifact

type SelectorEntity_Artifact struct {
	Artifact *SelectorArtifact `protobuf:"bytes,5,opt,name=artifact,proto3,oneof"`
}

type SelectorEntity_PullRequest

type SelectorEntity_PullRequest struct {
	PullRequest *SelectorPullRequest `protobuf:"bytes,6,opt,name=pull_request,json=pullRequest,proto3,oneof"`
}

type SelectorEntity_Repository

type SelectorEntity_Repository struct {
	Repository *SelectorRepository `protobuf:"bytes,4,opt,name=repository,proto3,oneof"`
}

type SelectorProvider

type SelectorProvider struct {

	// the name of the provider, e.g. github-app-jakubtestorg
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the class of the provider, e.g. github-app
	Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectorProvider) Descriptor deprecated

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

Deprecated: Use SelectorProvider.ProtoReflect.Descriptor instead.

func (*SelectorProvider) GetClass

func (x *SelectorProvider) GetClass() string

func (*SelectorProvider) GetName

func (x *SelectorProvider) GetName() string

func (*SelectorProvider) ProtoMessage

func (*SelectorProvider) ProtoMessage()

func (*SelectorProvider) ProtoReflect

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

func (*SelectorProvider) Reset

func (x *SelectorProvider) Reset()

func (*SelectorProvider) String

func (x *SelectorProvider) String() string

type SelectorPullRequest

type SelectorPullRequest struct {

	// the full name of the pr, e.g. mindersec/minder-server/123
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the provider of the pull request
	Provider *SelectorProvider `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	// provider-specific properties
	Properties *structpb.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectorPullRequest) Descriptor deprecated

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

Deprecated: Use SelectorPullRequest.ProtoReflect.Descriptor instead.

func (*SelectorPullRequest) GetName

func (x *SelectorPullRequest) GetName() string

func (*SelectorPullRequest) GetProperties

func (x *SelectorPullRequest) GetProperties() *structpb.Struct

func (*SelectorPullRequest) GetProvider

func (x *SelectorPullRequest) GetProvider() *SelectorProvider

func (*SelectorPullRequest) ProtoMessage

func (*SelectorPullRequest) ProtoMessage()

func (*SelectorPullRequest) ProtoReflect

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

func (*SelectorPullRequest) Reset

func (x *SelectorPullRequest) Reset()

func (*SelectorPullRequest) String

func (x *SelectorPullRequest) String() string

type SelectorRepository

type SelectorRepository struct {

	// the full name of the repository, e.g. mindersec/minder
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the provider of the repository
	Provider *SelectorProvider `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	// is_fork is true if the repository is a fork, nil if "don't know" or rather
	// not applicable to this provider
	IsFork *bool `protobuf:"varint,3,opt,name=is_fork,json=isFork,proto3,oneof" json:"is_fork,omitempty"`
	// is_private is true if the repository is private, nil if "don't know" or rather
	// not applicable to this provider
	IsPrivate  *bool            `protobuf:"varint,4,opt,name=is_private,json=isPrivate,proto3,oneof" json:"is_private,omitempty"`
	Properties *structpb.Struct `protobuf:"bytes,5,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectorRepository) Descriptor deprecated

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

Deprecated: Use SelectorRepository.ProtoReflect.Descriptor instead.

func (*SelectorRepository) GetIsFork

func (x *SelectorRepository) GetIsFork() bool

func (*SelectorRepository) GetIsPrivate

func (x *SelectorRepository) GetIsPrivate() bool

func (*SelectorRepository) GetName

func (x *SelectorRepository) GetName() string

func (*SelectorRepository) GetProperties

func (x *SelectorRepository) GetProperties() *structpb.Struct

func (*SelectorRepository) GetProvider

func (x *SelectorRepository) GetProvider() *SelectorProvider

func (*SelectorRepository) ProtoMessage

func (*SelectorRepository) ProtoMessage()

func (*SelectorRepository) ProtoReflect

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

func (*SelectorRepository) Reset

func (x *SelectorRepository) Reset()

func (*SelectorRepository) String

func (x *SelectorRepository) String() string

Jump to

Keyboard shortcuts

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