config_go_proto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ArchiveConfig

type ArchiveConfig struct {

	// The maximum file size the plugin will process.
	// If set, this overrides the global max_file_size_bytes configuration
	// for this specific plugin.
	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchiveConfig) Descriptor deprecated

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

Deprecated: Use ArchiveConfig.ProtoReflect.Descriptor instead.

func (*ArchiveConfig) GetMaxFileSizeBytes

func (x *ArchiveConfig) GetMaxFileSizeBytes() int64

func (*ArchiveConfig) ProtoMessage

func (*ArchiveConfig) ProtoMessage()

func (*ArchiveConfig) ProtoReflect

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

func (*ArchiveConfig) Reset

func (x *ArchiveConfig) Reset()

func (*ArchiveConfig) String

func (x *ArchiveConfig) String() string

type GoBinaryConfig

type GoBinaryConfig struct {

	// Enables extracting the module version from the Go binary content.
	VersionFromContent bool `protobuf:"varint,1,opt,name=version_from_content,json=versionFromContent,proto3" json:"version_from_content,omitempty"`
	// contains filtered or unexported fields
}

func (*GoBinaryConfig) Descriptor deprecated

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

Deprecated: Use GoBinaryConfig.ProtoReflect.Descriptor instead.

func (*GoBinaryConfig) GetVersionFromContent

func (x *GoBinaryConfig) GetVersionFromContent() bool

func (*GoBinaryConfig) ProtoMessage

func (*GoBinaryConfig) ProtoMessage()

func (*GoBinaryConfig) ProtoReflect

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

func (*GoBinaryConfig) Reset

func (x *GoBinaryConfig) Reset()

func (*GoBinaryConfig) String

func (x *GoBinaryConfig) String() string

type GovulncheckConfig

type GovulncheckConfig struct {

	// Path to the offline vuln DB to pass to govunlcheck. If empty,
	// the detector will query vulns from the net instead.
	OfflineVulnDbPath string `protobuf:"bytes,1,opt,name=offline_vuln_db_path,json=offlineVulnDbPath,proto3" json:"offline_vuln_db_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GovulncheckConfig) Descriptor deprecated

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

Deprecated: Use GovulncheckConfig.ProtoReflect.Descriptor instead.

func (*GovulncheckConfig) GetOfflineVulnDbPath

func (x *GovulncheckConfig) GetOfflineVulnDbPath() string

func (*GovulncheckConfig) ProtoMessage

func (*GovulncheckConfig) ProtoMessage()

func (*GovulncheckConfig) ProtoReflect

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

func (*GovulncheckConfig) Reset

func (x *GovulncheckConfig) Reset()

func (*GovulncheckConfig) String

func (x *GovulncheckConfig) String() string

type OVAConfig

type OVAConfig struct {

	// The maximum file size the plugin will process.
	// If set, this overrides the global max_file_size_bytes configuration
	// for this specific plugin.
	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*OVAConfig) Descriptor deprecated

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

Deprecated: Use OVAConfig.ProtoReflect.Descriptor instead.

func (*OVAConfig) GetMaxFileSizeBytes

func (x *OVAConfig) GetMaxFileSizeBytes() int64

func (*OVAConfig) ProtoMessage

func (*OVAConfig) ProtoMessage()

func (*OVAConfig) ProtoReflect

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

func (*OVAConfig) Reset

func (x *OVAConfig) Reset()

func (*OVAConfig) String

func (x *OVAConfig) String() string

type PluginConfig

type PluginConfig struct {

	// The maximum file size the plugin will process.
	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
	// Config values that only apply to a single plugin.
	PluginSpecific []*PluginSpecificConfig `protobuf:"bytes,2,rep,name=plugin_specific,json=pluginSpecific,proto3" json:"plugin_specific,omitempty"`
	// contains filtered or unexported fields
}

func (*PluginConfig) Descriptor deprecated

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

Deprecated: Use PluginConfig.ProtoReflect.Descriptor instead.

func (*PluginConfig) GetMaxFileSizeBytes

func (x *PluginConfig) GetMaxFileSizeBytes() int64

func (*PluginConfig) GetPluginSpecific

func (x *PluginConfig) GetPluginSpecific() []*PluginSpecificConfig

func (*PluginConfig) ProtoMessage

func (*PluginConfig) ProtoMessage()

func (*PluginConfig) ProtoReflect

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

func (*PluginConfig) Reset

func (x *PluginConfig) Reset()

func (*PluginConfig) String

func (x *PluginConfig) String() string

type PluginSpecificConfig

type PluginSpecificConfig struct {

	// Types that are valid to be assigned to Config:
	//
	//	*PluginSpecificConfig_GoBinary
	//	*PluginSpecificConfig_Govulncheck
	//	*PluginSpecificConfig_Archive
	//	*PluginSpecificConfig_Ova
	//	*PluginSpecificConfig_Vdi
	//	*PluginSpecificConfig_Vmdk
	Config isPluginSpecificConfig_Config `protobuf_oneof:"config"`
	// contains filtered or unexported fields
}

func (*PluginSpecificConfig) Descriptor deprecated

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

Deprecated: Use PluginSpecificConfig.ProtoReflect.Descriptor instead.

func (*PluginSpecificConfig) GetArchive

func (x *PluginSpecificConfig) GetArchive() *ArchiveConfig

func (*PluginSpecificConfig) GetConfig

func (x *PluginSpecificConfig) GetConfig() isPluginSpecificConfig_Config

func (*PluginSpecificConfig) GetGoBinary

func (x *PluginSpecificConfig) GetGoBinary() *GoBinaryConfig

func (*PluginSpecificConfig) GetGovulncheck

func (x *PluginSpecificConfig) GetGovulncheck() *GovulncheckConfig

func (*PluginSpecificConfig) GetOva

func (x *PluginSpecificConfig) GetOva() *OVAConfig

func (*PluginSpecificConfig) GetVdi

func (x *PluginSpecificConfig) GetVdi() *VDIConfig

func (*PluginSpecificConfig) GetVmdk

func (x *PluginSpecificConfig) GetVmdk() *VMDKConfig

func (*PluginSpecificConfig) ProtoMessage

func (*PluginSpecificConfig) ProtoMessage()

func (*PluginSpecificConfig) ProtoReflect

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

func (*PluginSpecificConfig) Reset

func (x *PluginSpecificConfig) Reset()

func (*PluginSpecificConfig) String

func (x *PluginSpecificConfig) String() string

type PluginSpecificConfig_Archive

type PluginSpecificConfig_Archive struct {
	Archive *ArchiveConfig `protobuf:"bytes,3,opt,name=archive,proto3,oneof"`
}

type PluginSpecificConfig_GoBinary

type PluginSpecificConfig_GoBinary struct {
	GoBinary *GoBinaryConfig `protobuf:"bytes,1,opt,name=go_binary,json=goBinary,proto3,oneof"`
}

type PluginSpecificConfig_Govulncheck

type PluginSpecificConfig_Govulncheck struct {
	Govulncheck *GovulncheckConfig `protobuf:"bytes,2,opt,name=govulncheck,proto3,oneof"`
}

type PluginSpecificConfig_Ova

type PluginSpecificConfig_Ova struct {
	Ova *OVAConfig `protobuf:"bytes,4,opt,name=ova,proto3,oneof"`
}

type PluginSpecificConfig_Vdi

type PluginSpecificConfig_Vdi struct {
	Vdi *VDIConfig `protobuf:"bytes,5,opt,name=vdi,proto3,oneof"`
}

type PluginSpecificConfig_Vmdk

type PluginSpecificConfig_Vmdk struct {
	Vmdk *VMDKConfig `protobuf:"bytes,6,opt,name=vmdk,proto3,oneof"`
}

type VDIConfig

type VDIConfig struct {

	// The maximum file size the plugin will process.
	// If set, this overrides the global max_file_size_bytes configuration
	// for this specific plugin.
	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*VDIConfig) Descriptor deprecated

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

Deprecated: Use VDIConfig.ProtoReflect.Descriptor instead.

func (*VDIConfig) GetMaxFileSizeBytes

func (x *VDIConfig) GetMaxFileSizeBytes() int64

func (*VDIConfig) ProtoMessage

func (*VDIConfig) ProtoMessage()

func (*VDIConfig) ProtoReflect

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

func (*VDIConfig) Reset

func (x *VDIConfig) Reset()

func (*VDIConfig) String

func (x *VDIConfig) String() string

type VMDKConfig

type VMDKConfig struct {

	// The maximum file size the plugin will process.
	// If set, this overrides the global max_file_size_bytes configuration
	// for this specific plugin.
	MaxFileSizeBytes int64 `protobuf:"varint,1,opt,name=max_file_size_bytes,json=maxFileSizeBytes,proto3" json:"max_file_size_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*VMDKConfig) Descriptor deprecated

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

Deprecated: Use VMDKConfig.ProtoReflect.Descriptor instead.

func (*VMDKConfig) GetMaxFileSizeBytes

func (x *VMDKConfig) GetMaxFileSizeBytes() int64

func (*VMDKConfig) ProtoMessage

func (*VMDKConfig) ProtoMessage()

func (*VMDKConfig) ProtoReflect

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

func (*VMDKConfig) Reset

func (x *VMDKConfig) Reset()

func (*VMDKConfig) String

func (x *VMDKConfig) String() string

Jump to

Keyboard shortcuts

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