code

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "UNKNOWN_TYPE",
		1: "ENTERPRISE",
		2: "ORGANIZATION",
		3: "USER",
	}
	Type_value = map[string]int32{
		"UNKNOWN_TYPE": 0,
		"ENTERPRISE":   1,
		"ORGANIZATION": 2,
		"USER":         3,
	}
)

Enum value maps for Type.

View Source
var (
	Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "OK",
		2: "CONFIGURED",
		3: "IN_PROGRESS",
		4: "ERROR",
	}
	Status_value = map[string]int32{
		"UNKNOWN":     0,
		"OK":          1,
		"CONFIGURED":  2,
		"IN_PROGRESS": 3,
		"ERROR":       4,
	}
)

Enum value maps for Status.

View Source
var File_code_entity_proto protoreflect.FileDescriptor
View Source
var File_code_service_proto protoreflect.FileDescriptor

Functions

func RegisterCodeServiceServer

func RegisterCodeServiceServer(s *grpc.Server, srv CodeServiceServer)

Types

type CodeDataSource

type CodeDataSource struct {
	CodeDataSourceId uint32  `protobuf:"varint,1,opt,name=code_data_source_id,json=codeDataSourceId,proto3" json:"code_data_source_id,omitempty"`
	Name             string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description      string  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	MaxScore         float32 `protobuf:"fixed32,4,opt,name=max_score,json=maxScore,proto3" json:"max_score,omitempty"`
	CreatedAt        int64   `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt        int64   `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

CodeDataSource

func (*CodeDataSource) Descriptor deprecated

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

Deprecated: Use CodeDataSource.ProtoReflect.Descriptor instead.

func (*CodeDataSource) GetCodeDataSourceId

func (x *CodeDataSource) GetCodeDataSourceId() uint32

func (*CodeDataSource) GetCreatedAt

func (x *CodeDataSource) GetCreatedAt() int64

func (*CodeDataSource) GetDescription

func (x *CodeDataSource) GetDescription() string

func (*CodeDataSource) GetMaxScore

func (x *CodeDataSource) GetMaxScore() float32

func (*CodeDataSource) GetName

func (x *CodeDataSource) GetName() string

func (*CodeDataSource) GetUpdatedAt

func (x *CodeDataSource) GetUpdatedAt() int64

func (*CodeDataSource) ProtoMessage

func (*CodeDataSource) ProtoMessage()

func (*CodeDataSource) ProtoReflect

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

func (*CodeDataSource) Reset

func (x *CodeDataSource) Reset()

func (*CodeDataSource) String

func (x *CodeDataSource) String() string

type CodeServiceClient

type CodeServiceClient interface {
	// Code DataSource
	ListDataSource(ctx context.Context, in *ListDataSourceRequest, opts ...grpc.CallOption) (*ListDataSourceResponse, error)
	// Gitleaks
	ListGitleaks(ctx context.Context, in *ListGitleaksRequest, opts ...grpc.CallOption) (*ListGitleaksResponse, error)
	GetGitleaks(ctx context.Context, in *GetGitleaksRequest, opts ...grpc.CallOption) (*GetGitleaksResponse, error)
	PutGitleaks(ctx context.Context, in *PutGitleaksRequest, opts ...grpc.CallOption) (*PutGitleaksResponse, error)
	DeleteGitleaks(ctx context.Context, in *DeleteGitleaksRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Enterprise
	ListEnterpriseOrg(ctx context.Context, in *ListEnterpriseOrgRequest, opts ...grpc.CallOption) (*ListEnterpriseOrgResponse, error)
	PutEnterpriseOrg(ctx context.Context, in *PutEnterpriseOrgRequest, opts ...grpc.CallOption) (*PutEnterpriseOrgResponse, error)
	DeleteEnterpriseOrg(ctx context.Context, in *DeleteEnterpriseOrgRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Scan
	InvokeScanGitleaks(ctx context.Context, in *InvokeScanGitleaksRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	InvokeScanAllGitleaks(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CodeServiceClient is the client API for CodeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type CodeServiceServer

CodeServiceServer is the server API for CodeService service.

type DeleteEnterpriseOrgRequest

type DeleteEnterpriseOrgRequest struct {
	ProjectId  uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	GitleaksId uint32 `protobuf:"varint,2,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	Login      string `protobuf:"bytes,3,opt,name=login,proto3" json:"login,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteEnterpriseOrgRequest) Descriptor deprecated

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

Deprecated: Use DeleteEnterpriseOrgRequest.ProtoReflect.Descriptor instead.

func (*DeleteEnterpriseOrgRequest) GetGitleaksId

func (x *DeleteEnterpriseOrgRequest) GetGitleaksId() uint32

func (*DeleteEnterpriseOrgRequest) GetLogin

func (x *DeleteEnterpriseOrgRequest) GetLogin() string

func (*DeleteEnterpriseOrgRequest) GetProjectId

func (x *DeleteEnterpriseOrgRequest) GetProjectId() uint32

func (*DeleteEnterpriseOrgRequest) ProtoMessage

func (*DeleteEnterpriseOrgRequest) ProtoMessage()

func (*DeleteEnterpriseOrgRequest) ProtoReflect

func (*DeleteEnterpriseOrgRequest) Reset

func (x *DeleteEnterpriseOrgRequest) Reset()

func (*DeleteEnterpriseOrgRequest) String

func (x *DeleteEnterpriseOrgRequest) String() string

func (*DeleteEnterpriseOrgRequest) Validate

func (d *DeleteEnterpriseOrgRequest) Validate() error

Validate DeleteEnterpriseOrgRequest

type DeleteGitleaksRequest

type DeleteGitleaksRequest struct {
	ProjectId  uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	GitleaksId uint32 `protobuf:"varint,2,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGitleaksRequest) Descriptor deprecated

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

Deprecated: Use DeleteGitleaksRequest.ProtoReflect.Descriptor instead.

func (*DeleteGitleaksRequest) GetGitleaksId

func (x *DeleteGitleaksRequest) GetGitleaksId() uint32

func (*DeleteGitleaksRequest) GetProjectId

func (x *DeleteGitleaksRequest) GetProjectId() uint32

func (*DeleteGitleaksRequest) ProtoMessage

func (*DeleteGitleaksRequest) ProtoMessage()

func (*DeleteGitleaksRequest) ProtoReflect

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

func (*DeleteGitleaksRequest) Reset

func (x *DeleteGitleaksRequest) Reset()

func (*DeleteGitleaksRequest) String

func (x *DeleteGitleaksRequest) String() string

func (*DeleteGitleaksRequest) Validate

func (d *DeleteGitleaksRequest) Validate() error

Validate DeleteGitleaksRequest

type EnterpriseOrg

type EnterpriseOrg struct {
	GitleaksId uint32 `protobuf:"varint,1,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	Login      string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"`
	ProjectId  uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt  int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  int64  `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

EnterpriseOrg

func (*EnterpriseOrg) Descriptor deprecated

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

Deprecated: Use EnterpriseOrg.ProtoReflect.Descriptor instead.

func (*EnterpriseOrg) GetCreatedAt

func (x *EnterpriseOrg) GetCreatedAt() int64

func (*EnterpriseOrg) GetGitleaksId

func (x *EnterpriseOrg) GetGitleaksId() uint32

func (*EnterpriseOrg) GetLogin

func (x *EnterpriseOrg) GetLogin() string

func (*EnterpriseOrg) GetProjectId

func (x *EnterpriseOrg) GetProjectId() uint32

func (*EnterpriseOrg) GetUpdatedAt

func (x *EnterpriseOrg) GetUpdatedAt() int64

func (*EnterpriseOrg) ProtoMessage

func (*EnterpriseOrg) ProtoMessage()

func (*EnterpriseOrg) ProtoReflect

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

func (*EnterpriseOrg) Reset

func (x *EnterpriseOrg) Reset()

func (*EnterpriseOrg) String

func (x *EnterpriseOrg) String() string

type EnterpriseOrgForUpsert

type EnterpriseOrgForUpsert struct {
	GitleaksId uint32 `protobuf:"varint,1,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	Login      string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"`
	ProjectId  uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

EnterpriseOrgForUpsert

func (*EnterpriseOrgForUpsert) Descriptor deprecated

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

Deprecated: Use EnterpriseOrgForUpsert.ProtoReflect.Descriptor instead.

func (*EnterpriseOrgForUpsert) GetGitleaksId

func (x *EnterpriseOrgForUpsert) GetGitleaksId() uint32

func (*EnterpriseOrgForUpsert) GetLogin

func (x *EnterpriseOrgForUpsert) GetLogin() string

func (*EnterpriseOrgForUpsert) GetProjectId

func (x *EnterpriseOrgForUpsert) GetProjectId() uint32

func (*EnterpriseOrgForUpsert) ProtoMessage

func (*EnterpriseOrgForUpsert) ProtoMessage()

func (*EnterpriseOrgForUpsert) ProtoReflect

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

func (*EnterpriseOrgForUpsert) Reset

func (x *EnterpriseOrgForUpsert) Reset()

func (*EnterpriseOrgForUpsert) String

func (x *EnterpriseOrgForUpsert) String() string

func (*EnterpriseOrgForUpsert) Validate

func (e *EnterpriseOrgForUpsert) Validate() error

Validate EnterpriseOrgForUpsert

type GetGitleaksRequest

type GetGitleaksRequest struct {
	ProjectId  uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	GitleaksId uint32 `protobuf:"varint,2,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGitleaksRequest) Descriptor deprecated

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

Deprecated: Use GetGitleaksRequest.ProtoReflect.Descriptor instead.

func (*GetGitleaksRequest) GetGitleaksId

func (x *GetGitleaksRequest) GetGitleaksId() uint32

func (*GetGitleaksRequest) GetProjectId

func (x *GetGitleaksRequest) GetProjectId() uint32

func (*GetGitleaksRequest) ProtoMessage

func (*GetGitleaksRequest) ProtoMessage()

func (*GetGitleaksRequest) ProtoReflect

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

func (*GetGitleaksRequest) Reset

func (x *GetGitleaksRequest) Reset()

func (*GetGitleaksRequest) String

func (x *GetGitleaksRequest) String() string

func (*GetGitleaksRequest) Validate

func (l *GetGitleaksRequest) Validate() error

Validate ListGitleaksRequest

type GetGitleaksResponse

type GetGitleaksResponse struct {
	Gitleaks *Gitleaks `protobuf:"bytes,1,opt,name=gitleaks,proto3" json:"gitleaks,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGitleaksResponse) Descriptor deprecated

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

Deprecated: Use GetGitleaksResponse.ProtoReflect.Descriptor instead.

func (*GetGitleaksResponse) GetGitleaks

func (x *GetGitleaksResponse) GetGitleaks() *Gitleaks

func (*GetGitleaksResponse) ProtoMessage

func (*GetGitleaksResponse) ProtoMessage()

func (*GetGitleaksResponse) ProtoReflect

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

func (*GetGitleaksResponse) Reset

func (x *GetGitleaksResponse) Reset()

func (*GetGitleaksResponse) String

func (x *GetGitleaksResponse) String() string

type Gitleaks

type Gitleaks struct {
	GitleaksId          uint32 `protobuf:"varint,1,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	CodeDataSourceId    uint32 `protobuf:"varint,2,opt,name=code_data_source_id,json=codeDataSourceId,proto3" json:"code_data_source_id,omitempty"`
	Name                string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	ProjectId           uint32 `protobuf:"varint,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Type                Type   `protobuf:"varint,5,opt,name=type,proto3,enum=datasource.code.Type" json:"type,omitempty"`
	BaseUrl             string `protobuf:"bytes,6,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
	TargetResource      string `protobuf:"bytes,7,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	RepositoryPattern   string `protobuf:"bytes,8,opt,name=repository_pattern,json=repositoryPattern,proto3" json:"repository_pattern,omitempty"`
	GithubUser          string `protobuf:"bytes,9,opt,name=github_user,json=githubUser,proto3" json:"github_user,omitempty"`
	PersonalAccessToken string `protobuf:"bytes,10,opt,name=personal_access_token,json=personalAccessToken,proto3" json:"personal_access_token,omitempty"`
	ScanPublic          bool   `protobuf:"varint,11,opt,name=scan_public,json=scanPublic,proto3" json:"scan_public,omitempty"`
	ScanInternal        bool   `protobuf:"varint,12,opt,name=scan_internal,json=scanInternal,proto3" json:"scan_internal,omitempty"`
	ScanPrivate         bool   `protobuf:"varint,13,opt,name=scan_private,json=scanPrivate,proto3" json:"scan_private,omitempty"`
	GitleaksConfig      string `protobuf:"bytes,14,opt,name=gitleaks_config,json=gitleaksConfig,proto3" json:"gitleaks_config,omitempty"`
	Status              Status `protobuf:"varint,15,opt,name=status,proto3,enum=datasource.code.Status" json:"status,omitempty"`
	StatusDetail        string `protobuf:"bytes,16,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
	ScanAt              int64  `protobuf:"varint,17,opt,name=scan_at,json=scanAt,proto3" json:"scan_at,omitempty"`
	CreatedAt           int64  `protobuf:"varint,18,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt           int64  `protobuf:"varint,19,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	ScanSucceededAt     int64  `protobuf:"varint,20,opt,name=scan_succeeded_at,json=scanSucceededAt,proto3" json:"scan_succeeded_at,omitempty"`
	// contains filtered or unexported fields
}

Gitleaks

func (*Gitleaks) Descriptor deprecated

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

Deprecated: Use Gitleaks.ProtoReflect.Descriptor instead.

func (*Gitleaks) GetBaseUrl

func (x *Gitleaks) GetBaseUrl() string

func (*Gitleaks) GetCodeDataSourceId

func (x *Gitleaks) GetCodeDataSourceId() uint32

func (*Gitleaks) GetCreatedAt

func (x *Gitleaks) GetCreatedAt() int64

func (*Gitleaks) GetGithubUser

func (x *Gitleaks) GetGithubUser() string

func (*Gitleaks) GetGitleaksConfig

func (x *Gitleaks) GetGitleaksConfig() string

func (*Gitleaks) GetGitleaksId

func (x *Gitleaks) GetGitleaksId() uint32

func (*Gitleaks) GetName

func (x *Gitleaks) GetName() string

func (*Gitleaks) GetPersonalAccessToken

func (x *Gitleaks) GetPersonalAccessToken() string

func (*Gitleaks) GetProjectId

func (x *Gitleaks) GetProjectId() uint32

func (*Gitleaks) GetRepositoryPattern

func (x *Gitleaks) GetRepositoryPattern() string

func (*Gitleaks) GetScanAt

func (x *Gitleaks) GetScanAt() int64

func (*Gitleaks) GetScanInternal

func (x *Gitleaks) GetScanInternal() bool

func (*Gitleaks) GetScanPrivate

func (x *Gitleaks) GetScanPrivate() bool

func (*Gitleaks) GetScanPublic

func (x *Gitleaks) GetScanPublic() bool

func (*Gitleaks) GetScanSucceededAt

func (x *Gitleaks) GetScanSucceededAt() int64

func (*Gitleaks) GetStatus

func (x *Gitleaks) GetStatus() Status

func (*Gitleaks) GetStatusDetail

func (x *Gitleaks) GetStatusDetail() string

func (*Gitleaks) GetTargetResource

func (x *Gitleaks) GetTargetResource() string

func (*Gitleaks) GetType

func (x *Gitleaks) GetType() Type

func (*Gitleaks) GetUpdatedAt

func (x *Gitleaks) GetUpdatedAt() int64

func (*Gitleaks) ProtoMessage

func (*Gitleaks) ProtoMessage()

func (*Gitleaks) ProtoReflect

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

func (*Gitleaks) Reset

func (x *Gitleaks) Reset()

func (*Gitleaks) String

func (x *Gitleaks) String() string

type GitleaksForUpsert

type GitleaksForUpsert struct {
	GitleaksId          uint32 `protobuf:"varint,1,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"` // Unique key for Gitleaks entity.
	CodeDataSourceId    uint32 `protobuf:"varint,2,opt,name=code_data_source_id,json=codeDataSourceId,proto3" json:"code_data_source_id,omitempty"`
	Name                string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	ProjectId           uint32 `protobuf:"varint,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Type                Type   `protobuf:"varint,5,opt,name=type,proto3,enum=datasource.code.Type" json:"type,omitempty"`
	BaseUrl             string `protobuf:"bytes,6,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
	TargetResource      string `protobuf:"bytes,7,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	RepositoryPattern   string `protobuf:"bytes,8,opt,name=repository_pattern,json=repositoryPattern,proto3" json:"repository_pattern,omitempty"`
	GithubUser          string `protobuf:"bytes,9,opt,name=github_user,json=githubUser,proto3" json:"github_user,omitempty"`
	PersonalAccessToken string `protobuf:"bytes,10,opt,name=personal_access_token,json=personalAccessToken,proto3" json:"personal_access_token,omitempty"`
	ScanPublic          bool   `protobuf:"varint,11,opt,name=scan_public,json=scanPublic,proto3" json:"scan_public,omitempty"`
	ScanInternal        bool   `protobuf:"varint,12,opt,name=scan_internal,json=scanInternal,proto3" json:"scan_internal,omitempty"`
	ScanPrivate         bool   `protobuf:"varint,13,opt,name=scan_private,json=scanPrivate,proto3" json:"scan_private,omitempty"`
	GitleaksConfig      string `protobuf:"bytes,14,opt,name=gitleaks_config,json=gitleaksConfig,proto3" json:"gitleaks_config,omitempty"`
	Status              Status `protobuf:"varint,15,opt,name=status,proto3,enum=datasource.code.Status" json:"status,omitempty"`
	StatusDetail        string `protobuf:"bytes,16,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
	ScanAt              int64  `protobuf:"varint,17,opt,name=scan_at,json=scanAt,proto3" json:"scan_at,omitempty"`
	ScanSucceededAt     int64  `protobuf:"varint,18,opt,name=scan_succeeded_at,json=scanSucceededAt,proto3" json:"scan_succeeded_at,omitempty"`
	// contains filtered or unexported fields
}

GitleaksForUpsert

func (*GitleaksForUpsert) Descriptor deprecated

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

Deprecated: Use GitleaksForUpsert.ProtoReflect.Descriptor instead.

func (*GitleaksForUpsert) GetBaseUrl

func (x *GitleaksForUpsert) GetBaseUrl() string

func (*GitleaksForUpsert) GetCodeDataSourceId

func (x *GitleaksForUpsert) GetCodeDataSourceId() uint32

func (*GitleaksForUpsert) GetGithubUser

func (x *GitleaksForUpsert) GetGithubUser() string

func (*GitleaksForUpsert) GetGitleaksConfig

func (x *GitleaksForUpsert) GetGitleaksConfig() string

func (*GitleaksForUpsert) GetGitleaksId

func (x *GitleaksForUpsert) GetGitleaksId() uint32

func (*GitleaksForUpsert) GetName

func (x *GitleaksForUpsert) GetName() string

func (*GitleaksForUpsert) GetPersonalAccessToken

func (x *GitleaksForUpsert) GetPersonalAccessToken() string

func (*GitleaksForUpsert) GetProjectId

func (x *GitleaksForUpsert) GetProjectId() uint32

func (*GitleaksForUpsert) GetRepositoryPattern

func (x *GitleaksForUpsert) GetRepositoryPattern() string

func (*GitleaksForUpsert) GetScanAt

func (x *GitleaksForUpsert) GetScanAt() int64

func (*GitleaksForUpsert) GetScanInternal

func (x *GitleaksForUpsert) GetScanInternal() bool

func (*GitleaksForUpsert) GetScanPrivate

func (x *GitleaksForUpsert) GetScanPrivate() bool

func (*GitleaksForUpsert) GetScanPublic

func (x *GitleaksForUpsert) GetScanPublic() bool

func (*GitleaksForUpsert) GetScanSucceededAt

func (x *GitleaksForUpsert) GetScanSucceededAt() int64

func (*GitleaksForUpsert) GetStatus

func (x *GitleaksForUpsert) GetStatus() Status

func (*GitleaksForUpsert) GetStatusDetail

func (x *GitleaksForUpsert) GetStatusDetail() string

func (*GitleaksForUpsert) GetTargetResource

func (x *GitleaksForUpsert) GetTargetResource() string

func (*GitleaksForUpsert) GetType

func (x *GitleaksForUpsert) GetType() Type

func (*GitleaksForUpsert) ProtoMessage

func (*GitleaksForUpsert) ProtoMessage()

func (*GitleaksForUpsert) ProtoReflect

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

func (*GitleaksForUpsert) Reset

func (x *GitleaksForUpsert) Reset()

func (*GitleaksForUpsert) String

func (x *GitleaksForUpsert) String() string

func (*GitleaksForUpsert) Validate

func (g *GitleaksForUpsert) Validate() error

Validate GitleaksForUpsert

type InvokeScanGitleaksRequest

type InvokeScanGitleaksRequest struct {
	ProjectId  uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	GitleaksId uint32 `protobuf:"varint,2,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	ScanOnly   bool   `protobuf:"varint,3,opt,name=scan_only,json=scanOnly,proto3" json:"scan_only,omitempty"`
	// contains filtered or unexported fields
}

func (*InvokeScanGitleaksRequest) Descriptor deprecated

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

Deprecated: Use InvokeScanGitleaksRequest.ProtoReflect.Descriptor instead.

func (*InvokeScanGitleaksRequest) GetGitleaksId

func (x *InvokeScanGitleaksRequest) GetGitleaksId() uint32

func (*InvokeScanGitleaksRequest) GetProjectId

func (x *InvokeScanGitleaksRequest) GetProjectId() uint32

func (*InvokeScanGitleaksRequest) GetScanOnly

func (x *InvokeScanGitleaksRequest) GetScanOnly() bool

func (*InvokeScanGitleaksRequest) ProtoMessage

func (*InvokeScanGitleaksRequest) ProtoMessage()

func (*InvokeScanGitleaksRequest) ProtoReflect

func (*InvokeScanGitleaksRequest) Reset

func (x *InvokeScanGitleaksRequest) Reset()

func (*InvokeScanGitleaksRequest) String

func (x *InvokeScanGitleaksRequest) String() string

func (*InvokeScanGitleaksRequest) Validate

func (i *InvokeScanGitleaksRequest) Validate() error

Validate InvokeScanRequest

type ListDataSourceRequest

type ListDataSourceRequest struct {
	CodeDataSourceId uint32 `protobuf:"varint,1,opt,name=code_data_source_id,json=codeDataSourceId,proto3" json:"code_data_source_id,omitempty"`
	Name             string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDataSourceRequest) Descriptor deprecated

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

Deprecated: Use ListDataSourceRequest.ProtoReflect.Descriptor instead.

func (*ListDataSourceRequest) GetCodeDataSourceId

func (x *ListDataSourceRequest) GetCodeDataSourceId() uint32

func (*ListDataSourceRequest) GetName

func (x *ListDataSourceRequest) GetName() string

func (*ListDataSourceRequest) ProtoMessage

func (*ListDataSourceRequest) ProtoMessage()

func (*ListDataSourceRequest) ProtoReflect

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

func (*ListDataSourceRequest) Reset

func (x *ListDataSourceRequest) Reset()

func (*ListDataSourceRequest) String

func (x *ListDataSourceRequest) String() string

func (*ListDataSourceRequest) Validate

func (l *ListDataSourceRequest) Validate() error

Validate ListDataSourceRequest

type ListDataSourceResponse

type ListDataSourceResponse struct {
	CodeDataSource []*CodeDataSource `protobuf:"bytes,1,rep,name=code_data_source,json=codeDataSource,proto3" json:"code_data_source,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDataSourceResponse) Descriptor deprecated

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

Deprecated: Use ListDataSourceResponse.ProtoReflect.Descriptor instead.

func (*ListDataSourceResponse) GetCodeDataSource

func (x *ListDataSourceResponse) GetCodeDataSource() []*CodeDataSource

func (*ListDataSourceResponse) ProtoMessage

func (*ListDataSourceResponse) ProtoMessage()

func (*ListDataSourceResponse) ProtoReflect

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

func (*ListDataSourceResponse) Reset

func (x *ListDataSourceResponse) Reset()

func (*ListDataSourceResponse) String

func (x *ListDataSourceResponse) String() string

type ListEnterpriseOrgRequest

type ListEnterpriseOrgRequest struct {
	ProjectId  uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	GitleaksId uint32 `protobuf:"varint,2,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEnterpriseOrgRequest) Descriptor deprecated

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

Deprecated: Use ListEnterpriseOrgRequest.ProtoReflect.Descriptor instead.

func (*ListEnterpriseOrgRequest) GetGitleaksId

func (x *ListEnterpriseOrgRequest) GetGitleaksId() uint32

func (*ListEnterpriseOrgRequest) GetProjectId

func (x *ListEnterpriseOrgRequest) GetProjectId() uint32

func (*ListEnterpriseOrgRequest) ProtoMessage

func (*ListEnterpriseOrgRequest) ProtoMessage()

func (*ListEnterpriseOrgRequest) ProtoReflect

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

func (*ListEnterpriseOrgRequest) Reset

func (x *ListEnterpriseOrgRequest) Reset()

func (*ListEnterpriseOrgRequest) String

func (x *ListEnterpriseOrgRequest) String() string

func (*ListEnterpriseOrgRequest) Validate

func (l *ListEnterpriseOrgRequest) Validate() error

Validate ListEnterpriseOrgRequest

type ListEnterpriseOrgResponse

type ListEnterpriseOrgResponse struct {
	EnterpriseOrg []*EnterpriseOrg `protobuf:"bytes,1,rep,name=enterprise_org,json=enterpriseOrg,proto3" json:"enterprise_org,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEnterpriseOrgResponse) Descriptor deprecated

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

Deprecated: Use ListEnterpriseOrgResponse.ProtoReflect.Descriptor instead.

func (*ListEnterpriseOrgResponse) GetEnterpriseOrg

func (x *ListEnterpriseOrgResponse) GetEnterpriseOrg() []*EnterpriseOrg

func (*ListEnterpriseOrgResponse) ProtoMessage

func (*ListEnterpriseOrgResponse) ProtoMessage()

func (*ListEnterpriseOrgResponse) ProtoReflect

func (*ListEnterpriseOrgResponse) Reset

func (x *ListEnterpriseOrgResponse) Reset()

func (*ListEnterpriseOrgResponse) String

func (x *ListEnterpriseOrgResponse) String() string

type ListGitleaksRequest

type ListGitleaksRequest struct {
	ProjectId        uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CodeDataSourceId uint32 `protobuf:"varint,2,opt,name=code_data_source_id,json=codeDataSourceId,proto3" json:"code_data_source_id,omitempty"`
	GitleaksId       uint32 `protobuf:"varint,3,opt,name=gitleaks_id,json=gitleaksId,proto3" json:"gitleaks_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGitleaksRequest) Descriptor deprecated

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

Deprecated: Use ListGitleaksRequest.ProtoReflect.Descriptor instead.

func (*ListGitleaksRequest) GetCodeDataSourceId

func (x *ListGitleaksRequest) GetCodeDataSourceId() uint32

func (*ListGitleaksRequest) GetGitleaksId

func (x *ListGitleaksRequest) GetGitleaksId() uint32

func (*ListGitleaksRequest) GetProjectId

func (x *ListGitleaksRequest) GetProjectId() uint32

func (*ListGitleaksRequest) ProtoMessage

func (*ListGitleaksRequest) ProtoMessage()

func (*ListGitleaksRequest) ProtoReflect

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

func (*ListGitleaksRequest) Reset

func (x *ListGitleaksRequest) Reset()

func (*ListGitleaksRequest) String

func (x *ListGitleaksRequest) String() string

func (*ListGitleaksRequest) Validate

func (l *ListGitleaksRequest) Validate() error

Validate ListGitleaksRequest

type ListGitleaksResponse

type ListGitleaksResponse struct {
	Gitleaks []*Gitleaks `protobuf:"bytes,1,rep,name=gitleaks,proto3" json:"gitleaks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGitleaksResponse) Descriptor deprecated

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

Deprecated: Use ListGitleaksResponse.ProtoReflect.Descriptor instead.

func (*ListGitleaksResponse) GetGitleaks

func (x *ListGitleaksResponse) GetGitleaks() []*Gitleaks

func (*ListGitleaksResponse) ProtoMessage

func (*ListGitleaksResponse) ProtoMessage()

func (*ListGitleaksResponse) ProtoReflect

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

func (*ListGitleaksResponse) Reset

func (x *ListGitleaksResponse) Reset()

func (*ListGitleaksResponse) String

func (x *ListGitleaksResponse) String() string

type PutEnterpriseOrgRequest

type PutEnterpriseOrgRequest struct {
	ProjectId     uint32                  `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	EnterpriseOrg *EnterpriseOrgForUpsert `protobuf:"bytes,2,opt,name=enterprise_org,json=enterpriseOrg,proto3" json:"enterprise_org,omitempty"`
	// contains filtered or unexported fields
}

func (*PutEnterpriseOrgRequest) Descriptor deprecated

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

Deprecated: Use PutEnterpriseOrgRequest.ProtoReflect.Descriptor instead.

func (*PutEnterpriseOrgRequest) GetEnterpriseOrg

func (x *PutEnterpriseOrgRequest) GetEnterpriseOrg() *EnterpriseOrgForUpsert

func (*PutEnterpriseOrgRequest) GetProjectId

func (x *PutEnterpriseOrgRequest) GetProjectId() uint32

func (*PutEnterpriseOrgRequest) ProtoMessage

func (*PutEnterpriseOrgRequest) ProtoMessage()

func (*PutEnterpriseOrgRequest) ProtoReflect

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

func (*PutEnterpriseOrgRequest) Reset

func (x *PutEnterpriseOrgRequest) Reset()

func (*PutEnterpriseOrgRequest) String

func (x *PutEnterpriseOrgRequest) String() string

func (*PutEnterpriseOrgRequest) Validate

func (p *PutEnterpriseOrgRequest) Validate() error

Validate PutEnterpriseOrgRequest

type PutEnterpriseOrgResponse

type PutEnterpriseOrgResponse struct {
	EnterpriseOrg *EnterpriseOrg `protobuf:"bytes,1,opt,name=enterprise_org,json=enterpriseOrg,proto3" json:"enterprise_org,omitempty"`
	// contains filtered or unexported fields
}

func (*PutEnterpriseOrgResponse) Descriptor deprecated

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

Deprecated: Use PutEnterpriseOrgResponse.ProtoReflect.Descriptor instead.

func (*PutEnterpriseOrgResponse) GetEnterpriseOrg

func (x *PutEnterpriseOrgResponse) GetEnterpriseOrg() *EnterpriseOrg

func (*PutEnterpriseOrgResponse) ProtoMessage

func (*PutEnterpriseOrgResponse) ProtoMessage()

func (*PutEnterpriseOrgResponse) ProtoReflect

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

func (*PutEnterpriseOrgResponse) Reset

func (x *PutEnterpriseOrgResponse) Reset()

func (*PutEnterpriseOrgResponse) String

func (x *PutEnterpriseOrgResponse) String() string

type PutGitleaksRequest

type PutGitleaksRequest struct {
	ProjectId uint32             `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Gitleaks  *GitleaksForUpsert `protobuf:"bytes,2,opt,name=gitleaks,proto3" json:"gitleaks,omitempty"`
	// contains filtered or unexported fields
}

func (*PutGitleaksRequest) Descriptor deprecated

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

Deprecated: Use PutGitleaksRequest.ProtoReflect.Descriptor instead.

func (*PutGitleaksRequest) GetGitleaks

func (x *PutGitleaksRequest) GetGitleaks() *GitleaksForUpsert

func (*PutGitleaksRequest) GetProjectId

func (x *PutGitleaksRequest) GetProjectId() uint32

func (*PutGitleaksRequest) ProtoMessage

func (*PutGitleaksRequest) ProtoMessage()

func (*PutGitleaksRequest) ProtoReflect

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

func (*PutGitleaksRequest) Reset

func (x *PutGitleaksRequest) Reset()

func (*PutGitleaksRequest) String

func (x *PutGitleaksRequest) String() string

func (*PutGitleaksRequest) Validate

func (p *PutGitleaksRequest) Validate() error

Validate PutGitleaksRequest

type PutGitleaksResponse

type PutGitleaksResponse struct {
	Gitleaks *Gitleaks `protobuf:"bytes,1,opt,name=gitleaks,proto3" json:"gitleaks,omitempty"`
	// contains filtered or unexported fields
}

func (*PutGitleaksResponse) Descriptor deprecated

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

Deprecated: Use PutGitleaksResponse.ProtoReflect.Descriptor instead.

func (*PutGitleaksResponse) GetGitleaks

func (x *PutGitleaksResponse) GetGitleaks() *Gitleaks

func (*PutGitleaksResponse) ProtoMessage

func (*PutGitleaksResponse) ProtoMessage()

func (*PutGitleaksResponse) ProtoReflect

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

func (*PutGitleaksResponse) Reset

func (x *PutGitleaksResponse) Reset()

func (*PutGitleaksResponse) String

func (x *PutGitleaksResponse) String() string

type Status

type Status int32

Status

const (
	Status_UNKNOWN     Status = 0
	Status_OK          Status = 1
	Status_CONFIGURED  Status = 2
	Status_IN_PROGRESS Status = 3
	Status_ERROR       Status = 4
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type Type

type Type int32

Type

const (
	Type_UNKNOWN_TYPE Type = 0
	Type_ENTERPRISE   Type = 1
	Type_ORGANIZATION Type = 2
	Type_USER         Type = 3
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedCodeServiceServer

type UnimplementedCodeServiceServer struct {
}

UnimplementedCodeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCodeServiceServer) DeleteEnterpriseOrg

func (*UnimplementedCodeServiceServer) DeleteGitleaks

func (*UnimplementedCodeServiceServer) GetGitleaks

func (*UnimplementedCodeServiceServer) InvokeScanAllGitleaks

func (*UnimplementedCodeServiceServer) InvokeScanGitleaks

func (*UnimplementedCodeServiceServer) ListDataSource

func (*UnimplementedCodeServiceServer) ListEnterpriseOrg

func (*UnimplementedCodeServiceServer) ListGitleaks

func (*UnimplementedCodeServiceServer) PutEnterpriseOrg

func (*UnimplementedCodeServiceServer) PutGitleaks

Jump to

Keyboard shortcuts

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