api_go_proto

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScanStatus_ScanStatusEnum_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "FAILED",
		2: "SUCCEEDED",
	}
	ScanStatus_ScanStatusEnum_value = map[string]int32{
		"UNSPECIFIED": 0,
		"FAILED":      1,
		"SUCCEEDED":   2,
	}
)

Enum value maps for ScanStatus_ScanStatusEnum.

View Source
var File_scannerlib_proto_api_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BenchmarkConfig

type BenchmarkConfig struct {
	Id             string                              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ComplianceNote *compliance_go_proto.ComplianceNote `protobuf:"bytes,2,opt,name=compliance_note,json=complianceNote,proto3" json:"compliance_note,omitempty"`
	// contains filtered or unexported fields
}

func (*BenchmarkConfig) Descriptor deprecated

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

Deprecated: Use BenchmarkConfig.ProtoReflect.Descriptor instead.

func (*BenchmarkConfig) GetComplianceNote

func (x *BenchmarkConfig) GetComplianceNote() *compliance_go_proto.ComplianceNote

func (*BenchmarkConfig) GetId

func (x *BenchmarkConfig) GetId() string

func (*BenchmarkConfig) ProtoMessage

func (*BenchmarkConfig) ProtoMessage()

func (*BenchmarkConfig) ProtoReflect

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

func (*BenchmarkConfig) Reset

func (x *BenchmarkConfig) Reset()

func (*BenchmarkConfig) String

func (x *BenchmarkConfig) String() string

type ComplianceResult

type ComplianceResult struct {
	Id                   string                                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ComplianceOccurrence *compliance_go_proto.ComplianceOccurrence `protobuf:"bytes,3,opt,name=compliance_occurrence,json=complianceOccurrence,proto3" json:"compliance_occurrence,omitempty"`
	// contains filtered or unexported fields
}

func (*ComplianceResult) Descriptor deprecated

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

Deprecated: Use ComplianceResult.ProtoReflect.Descriptor instead.

func (*ComplianceResult) GetComplianceOccurrence

func (x *ComplianceResult) GetComplianceOccurrence() *compliance_go_proto.ComplianceOccurrence

func (*ComplianceResult) GetId

func (x *ComplianceResult) GetId() string

func (*ComplianceResult) ProtoMessage

func (*ComplianceResult) ProtoMessage()

func (*ComplianceResult) ProtoReflect

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

func (*ComplianceResult) Reset

func (x *ComplianceResult) Reset()

func (*ComplianceResult) String

func (x *ComplianceResult) String() string

type DirContent

type DirContent struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsDir     bool   `protobuf:"varint,2,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"`
	IsSymlink bool   `protobuf:"varint,3,opt,name=is_symlink,json=isSymlink,proto3" json:"is_symlink,omitempty"`
	// contains filtered or unexported fields
}

func (*DirContent) Descriptor deprecated

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

Deprecated: Use DirContent.ProtoReflect.Descriptor instead.

func (*DirContent) GetIsDir

func (x *DirContent) GetIsDir() bool
func (x *DirContent) GetIsSymlink() bool

func (*DirContent) GetName

func (x *DirContent) GetName() string

func (*DirContent) ProtoMessage

func (*DirContent) ProtoMessage()

func (*DirContent) ProtoReflect

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

func (*DirContent) Reset

func (x *DirContent) Reset()

func (*DirContent) String

func (x *DirContent) String() string

type OptOutConfig

type OptOutConfig struct {
	ContentOptoutRegexes   []string `protobuf:"bytes,1,rep,name=content_optout_regexes,json=contentOptoutRegexes,proto3" json:"content_optout_regexes,omitempty"`
	FilenameOptoutRegexes  []string `` /* 126-byte string literal not displayed */
	TraversalOptoutRegexes []string `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*OptOutConfig) Descriptor deprecated

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

Deprecated: Use OptOutConfig.ProtoReflect.Descriptor instead.

func (*OptOutConfig) GetContentOptoutRegexes

func (x *OptOutConfig) GetContentOptoutRegexes() []string

func (*OptOutConfig) GetFilenameOptoutRegexes

func (x *OptOutConfig) GetFilenameOptoutRegexes() []string

func (*OptOutConfig) GetTraversalOptoutRegexes

func (x *OptOutConfig) GetTraversalOptoutRegexes() []string

func (*OptOutConfig) ProtoMessage

func (*OptOutConfig) ProtoMessage()

func (*OptOutConfig) ProtoReflect

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

func (*OptOutConfig) Reset

func (x *OptOutConfig) Reset()

func (*OptOutConfig) String

func (x *OptOutConfig) String() string

type PerOsBenchmarkConfig

type PerOsBenchmarkConfig struct {
	Version     *compliance_go_proto.ComplianceVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	BenchmarkId []string                               `protobuf:"bytes,2,rep,name=benchmark_id,json=benchmarkId,proto3" json:"benchmark_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PerOsBenchmarkConfig) Descriptor deprecated

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

Deprecated: Use PerOsBenchmarkConfig.ProtoReflect.Descriptor instead.

func (*PerOsBenchmarkConfig) GetBenchmarkId

func (x *PerOsBenchmarkConfig) GetBenchmarkId() []string

func (*PerOsBenchmarkConfig) GetVersion

func (*PerOsBenchmarkConfig) ProtoMessage

func (*PerOsBenchmarkConfig) ProtoMessage()

func (*PerOsBenchmarkConfig) ProtoReflect

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

func (*PerOsBenchmarkConfig) Reset

func (x *PerOsBenchmarkConfig) Reset()

func (*PerOsBenchmarkConfig) String

func (x *PerOsBenchmarkConfig) String() string

type PosixPermissions

type PosixPermissions struct {
	PermissionNum int32  `protobuf:"varint,1,opt,name=permission_num,json=permissionNum,proto3" json:"permission_num,omitempty"`
	Uid           int32  `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
	User          string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Gid           int32  `protobuf:"varint,4,opt,name=gid,proto3" json:"gid,omitempty"`
	Group         string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*PosixPermissions) Descriptor deprecated

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

Deprecated: Use PosixPermissions.ProtoReflect.Descriptor instead.

func (*PosixPermissions) GetGid

func (x *PosixPermissions) GetGid() int32

func (*PosixPermissions) GetGroup

func (x *PosixPermissions) GetGroup() string

func (*PosixPermissions) GetPermissionNum

func (x *PosixPermissions) GetPermissionNum() int32

func (*PosixPermissions) GetUid

func (x *PosixPermissions) GetUid() int32

func (*PosixPermissions) GetUser

func (x *PosixPermissions) GetUser() string

func (*PosixPermissions) ProtoMessage

func (*PosixPermissions) ProtoMessage()

func (*PosixPermissions) ProtoReflect

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

func (*PosixPermissions) Reset

func (x *PosixPermissions) Reset()

func (*PosixPermissions) String

func (x *PosixPermissions) String() string

type ScanConfig

type ScanConfig struct {
	ScanTimeout           *durationpb.Duration `protobuf:"bytes,1,opt,name=scan_timeout,json=scanTimeout,proto3" json:"scan_timeout,omitempty"`
	BenchmarkCheckTimeout *durationpb.Duration `` /* 126-byte string literal not displayed */
	OptOutConfig          *OptOutConfig        `protobuf:"bytes,3,opt,name=opt_out_config,json=optOutConfig,proto3" json:"opt_out_config,omitempty"`
	BenchmarkConfigs      []*BenchmarkConfig   `protobuf:"bytes,4,rep,name=benchmark_configs,json=benchmarkConfigs,proto3" json:"benchmark_configs,omitempty"`
	// contains filtered or unexported fields
}

func (*ScanConfig) Descriptor deprecated

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

Deprecated: Use ScanConfig.ProtoReflect.Descriptor instead.

func (*ScanConfig) GetBenchmarkCheckTimeout

func (x *ScanConfig) GetBenchmarkCheckTimeout() *durationpb.Duration

func (*ScanConfig) GetBenchmarkConfigs

func (x *ScanConfig) GetBenchmarkConfigs() []*BenchmarkConfig

func (*ScanConfig) GetOptOutConfig

func (x *ScanConfig) GetOptOutConfig() *OptOutConfig

func (*ScanConfig) GetScanTimeout

func (x *ScanConfig) GetScanTimeout() *durationpb.Duration

func (*ScanConfig) ProtoMessage

func (*ScanConfig) ProtoMessage()

func (*ScanConfig) ProtoReflect

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

func (*ScanConfig) Reset

func (x *ScanConfig) Reset()

func (*ScanConfig) String

func (x *ScanConfig) String() string

type ScanResults

type ScanResults struct {
	StartTime              *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime                *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	ScannerVersion         string                 `protobuf:"bytes,3,opt,name=scanner_version,json=scannerVersion,proto3" json:"scanner_version,omitempty"`
	BenchmarkVersion       string                 `protobuf:"bytes,4,opt,name=benchmark_version,json=benchmarkVersion,proto3" json:"benchmark_version,omitempty"`
	Status                 *ScanStatus            `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	CompliantBenchmarks    []*ComplianceResult    `protobuf:"bytes,6,rep,name=compliant_benchmarks,json=compliantBenchmarks,proto3" json:"compliant_benchmarks,omitempty"`
	NonCompliantBenchmarks []*ComplianceResult    `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScanResults) Descriptor deprecated

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

Deprecated: Use ScanResults.ProtoReflect.Descriptor instead.

func (*ScanResults) GetBenchmarkVersion

func (x *ScanResults) GetBenchmarkVersion() string

func (*ScanResults) GetCompliantBenchmarks

func (x *ScanResults) GetCompliantBenchmarks() []*ComplianceResult

func (*ScanResults) GetEndTime

func (x *ScanResults) GetEndTime() *timestamppb.Timestamp

func (*ScanResults) GetNonCompliantBenchmarks

func (x *ScanResults) GetNonCompliantBenchmarks() []*ComplianceResult

func (*ScanResults) GetScannerVersion

func (x *ScanResults) GetScannerVersion() string

func (*ScanResults) GetStartTime

func (x *ScanResults) GetStartTime() *timestamppb.Timestamp

func (*ScanResults) GetStatus

func (x *ScanResults) GetStatus() *ScanStatus

func (*ScanResults) ProtoMessage

func (*ScanResults) ProtoMessage()

func (*ScanResults) ProtoReflect

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

func (*ScanResults) Reset

func (x *ScanResults) Reset()

func (*ScanResults) String

func (x *ScanResults) String() string

type ScanStatus

type ScanStatus struct {
	Status        ScanStatus_ScanStatusEnum `protobuf:"varint,1,opt,name=status,proto3,enum=localtoast.ScanStatus_ScanStatusEnum" json:"status,omitempty"`
	FailureReason string                    `protobuf:"bytes,2,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*ScanStatus) Descriptor deprecated

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

Deprecated: Use ScanStatus.ProtoReflect.Descriptor instead.

func (*ScanStatus) GetFailureReason

func (x *ScanStatus) GetFailureReason() string

func (*ScanStatus) GetStatus

func (x *ScanStatus) GetStatus() ScanStatus_ScanStatusEnum

func (*ScanStatus) ProtoMessage

func (*ScanStatus) ProtoMessage()

func (*ScanStatus) ProtoReflect

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

func (*ScanStatus) Reset

func (x *ScanStatus) Reset()

func (*ScanStatus) String

func (x *ScanStatus) String() string

type ScanStatus_ScanStatusEnum

type ScanStatus_ScanStatusEnum int32
const (
	ScanStatus_UNSPECIFIED ScanStatus_ScanStatusEnum = 0
	ScanStatus_FAILED      ScanStatus_ScanStatusEnum = 1
	ScanStatus_SUCCEEDED   ScanStatus_ScanStatusEnum = 2
)

func (ScanStatus_ScanStatusEnum) Descriptor

func (ScanStatus_ScanStatusEnum) Enum

func (ScanStatus_ScanStatusEnum) EnumDescriptor deprecated

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

Deprecated: Use ScanStatus_ScanStatusEnum.Descriptor instead.

func (ScanStatus_ScanStatusEnum) Number

func (ScanStatus_ScanStatusEnum) String

func (x ScanStatus_ScanStatusEnum) String() string

func (ScanStatus_ScanStatusEnum) Type

Jump to

Keyboard shortcuts

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