proto

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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    *v1.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() *v1.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   *v1.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() *v1.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 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