leastprivilegev1alpha1

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Usage_name = map[int32]string{
		0: "USAGE_UNSPECIFIED",
		3: "USAGE_IN_USE",
		4: "USAGE_UNUSED",
	}
	Usage_value = map[string]int32{
		"USAGE_UNSPECIFIED": 0,
		"USAGE_IN_USE":      3,
		"USAGE_UNUSED":      4,
	}
)

Enum value maps for Usage.

View Source
var File_commonfate_leastprivilege_v1alpha1_entitlement_usage_proto protoreflect.FileDescriptor
View Source
var File_commonfate_leastprivilege_v1alpha1_leastprivilege_proto protoreflect.FileDescriptor
View Source
var File_commonfate_leastprivilege_v1alpha1_report_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessPath

type AccessPath struct {
	Path []*v1alpha1.NamedEID `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessPath) Descriptor deprecated

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

Deprecated: Use AccessPath.ProtoReflect.Descriptor instead.

func (*AccessPath) GetPath

func (x *AccessPath) GetPath() []*v1alpha1.NamedEID

func (*AccessPath) ProtoMessage

func (*AccessPath) ProtoMessage()

func (*AccessPath) ProtoReflect

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

func (*AccessPath) Reset

func (x *AccessPath) Reset()

func (*AccessPath) String

func (x *AccessPath) String() string

type DownloadEntitlementUsageReportRequest

type DownloadEntitlementUsageReportRequest struct {
	// contains filtered or unexported fields
}

func (*DownloadEntitlementUsageReportRequest) Descriptor deprecated

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

Deprecated: Use DownloadEntitlementUsageReportRequest.ProtoReflect.Descriptor instead.

func (*DownloadEntitlementUsageReportRequest) ProtoMessage

func (*DownloadEntitlementUsageReportRequest) ProtoMessage()

func (*DownloadEntitlementUsageReportRequest) ProtoReflect

func (*DownloadEntitlementUsageReportRequest) Reset

func (*DownloadEntitlementUsageReportRequest) String

type DownloadEntitlementUsageReportResponse

type DownloadEntitlementUsageReportResponse struct {
	DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadEntitlementUsageReportResponse) Descriptor deprecated

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

Deprecated: Use DownloadEntitlementUsageReportResponse.ProtoReflect.Descriptor instead.

func (*DownloadEntitlementUsageReportResponse) GetDownloadUrl

func (x *DownloadEntitlementUsageReportResponse) GetDownloadUrl() string

func (*DownloadEntitlementUsageReportResponse) ProtoMessage

func (*DownloadEntitlementUsageReportResponse) ProtoReflect

func (*DownloadEntitlementUsageReportResponse) Reset

func (*DownloadEntitlementUsageReportResponse) String

type EntitlementUsage

type EntitlementUsage struct {
	Target      *v1alpha1.NamedEID     `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Role        *v1alpha1.NamedEID     `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	Principal   *v1alpha1.User         `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"`
	Usage       Usage                  `protobuf:"varint,4,opt,name=Usage,proto3,enum=commonfate.leastprivilege.v1alpha1.Usage" json:"Usage,omitempty"`
	UsageReason string                 `protobuf:"bytes,5,opt,name=usage_reason,json=usageReason,proto3" json:"usage_reason,omitempty"`
	AccessPaths []*AccessPath          `protobuf:"bytes,6,rep,name=access_paths,json=accessPaths,proto3" json:"access_paths,omitempty"`
	LastUsed    *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_used,json=lastUsed,proto3,oneof" json:"last_used,omitempty"`
	// contains filtered or unexported fields
}

func (*EntitlementUsage) Descriptor deprecated

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

Deprecated: Use EntitlementUsage.ProtoReflect.Descriptor instead.

func (*EntitlementUsage) GetAccessPaths

func (x *EntitlementUsage) GetAccessPaths() []*AccessPath

func (*EntitlementUsage) GetLastUsed

func (x *EntitlementUsage) GetLastUsed() *timestamppb.Timestamp

func (*EntitlementUsage) GetPrincipal

func (x *EntitlementUsage) GetPrincipal() *v1alpha1.User

func (*EntitlementUsage) GetRole

func (x *EntitlementUsage) GetRole() *v1alpha1.NamedEID

func (*EntitlementUsage) GetTarget

func (x *EntitlementUsage) GetTarget() *v1alpha1.NamedEID

func (*EntitlementUsage) GetUsage

func (x *EntitlementUsage) GetUsage() Usage

func (*EntitlementUsage) GetUsageReason

func (x *EntitlementUsage) GetUsageReason() string

func (*EntitlementUsage) ProtoMessage

func (*EntitlementUsage) ProtoMessage()

func (*EntitlementUsage) ProtoReflect

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

func (*EntitlementUsage) Reset

func (x *EntitlementUsage) Reset()

func (*EntitlementUsage) String

func (x *EntitlementUsage) String() string

type GetHistoricalReportsRequest

type GetHistoricalReportsRequest struct {
	// contains filtered or unexported fields
}

func (*GetHistoricalReportsRequest) Descriptor deprecated

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

Deprecated: Use GetHistoricalReportsRequest.ProtoReflect.Descriptor instead.

func (*GetHistoricalReportsRequest) ProtoMessage

func (*GetHistoricalReportsRequest) ProtoMessage()

func (*GetHistoricalReportsRequest) ProtoReflect

func (*GetHistoricalReportsRequest) Reset

func (x *GetHistoricalReportsRequest) Reset()

func (*GetHistoricalReportsRequest) String

func (x *GetHistoricalReportsRequest) String() string

type GetHistoricalReportsResponse

type GetHistoricalReportsResponse struct {
	Reports []*Report `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHistoricalReportsResponse) Descriptor deprecated

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

Deprecated: Use GetHistoricalReportsResponse.ProtoReflect.Descriptor instead.

func (*GetHistoricalReportsResponse) GetReports

func (x *GetHistoricalReportsResponse) GetReports() []*Report

func (*GetHistoricalReportsResponse) ProtoMessage

func (*GetHistoricalReportsResponse) ProtoMessage()

func (*GetHistoricalReportsResponse) ProtoReflect

func (*GetHistoricalReportsResponse) Reset

func (x *GetHistoricalReportsResponse) Reset()

func (*GetHistoricalReportsResponse) String

type GetLatestReportRequest

type GetLatestReportRequest struct {
	// contains filtered or unexported fields
}

func (*GetLatestReportRequest) Descriptor deprecated

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

Deprecated: Use GetLatestReportRequest.ProtoReflect.Descriptor instead.

func (*GetLatestReportRequest) ProtoMessage

func (*GetLatestReportRequest) ProtoMessage()

func (*GetLatestReportRequest) ProtoReflect

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

func (*GetLatestReportRequest) Reset

func (x *GetLatestReportRequest) Reset()

func (*GetLatestReportRequest) String

func (x *GetLatestReportRequest) String() string

type GetLatestReportResponse

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

func (*GetLatestReportResponse) Descriptor deprecated

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

Deprecated: Use GetLatestReportResponse.ProtoReflect.Descriptor instead.

func (*GetLatestReportResponse) GetReport

func (x *GetLatestReportResponse) GetReport() *Report

func (*GetLatestReportResponse) ProtoMessage

func (*GetLatestReportResponse) ProtoMessage()

func (*GetLatestReportResponse) ProtoReflect

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

func (*GetLatestReportResponse) Reset

func (x *GetLatestReportResponse) Reset()

func (*GetLatestReportResponse) String

func (x *GetLatestReportResponse) String() string

type Report

type Report struct {
	UsageSummaries  []*UsageSummary        `protobuf:"bytes,1,rep,name=usage_summaries,json=usageSummaries,proto3" json:"usage_summaries,omitempty"`
	CreatedAt       *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Timestamp       *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	UsageCutoffTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=usage_cutoff_time,json=usageCutoffTime,proto3" json:"usage_cutoff_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetCreatedAt

func (x *Report) GetCreatedAt() *timestamppb.Timestamp

func (*Report) GetTimestamp

func (x *Report) GetTimestamp() *timestamppb.Timestamp

func (*Report) GetUsageCutoffTime

func (x *Report) GetUsageCutoffTime() *timestamppb.Timestamp

func (*Report) GetUsageSummaries

func (x *Report) GetUsageSummaries() []*UsageSummary

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type Usage

type Usage int32
const (
	// It was not possible to infer whether the entitlement is in use or not.
	Usage_USAGE_UNSPECIFIED Usage = 0
	// The entitlement is currently in use.
	Usage_USAGE_IN_USE Usage = 3
	// The entitlement is unused.
	Usage_USAGE_UNUSED Usage = 4
)

func (Usage) Descriptor

func (Usage) Descriptor() protoreflect.EnumDescriptor

func (Usage) Enum

func (x Usage) Enum() *Usage

func (Usage) EnumDescriptor deprecated

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

Deprecated: Use Usage.Descriptor instead.

func (Usage) Number

func (x Usage) Number() protoreflect.EnumNumber

func (Usage) String

func (x Usage) String() string

func (Usage) Type

func (Usage) Type() protoreflect.EnumType

type UsageSummary

type UsageSummary struct {
	Label              string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	InUseCount         int32  `protobuf:"varint,3,opt,name=in_use_count,json=inUseCount,proto3" json:"in_use_count,omitempty"`
	UnusedCount        int32  `protobuf:"varint,4,opt,name=unused_count,json=unusedCount,proto3" json:"unused_count,omitempty"`
	IndeterminateCount int32  `protobuf:"varint,5,opt,name=indeterminate_count,json=indeterminateCount,proto3" json:"indeterminate_count,omitempty"`
	// contains filtered or unexported fields
}

func (*UsageSummary) Descriptor deprecated

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

Deprecated: Use UsageSummary.ProtoReflect.Descriptor instead.

func (*UsageSummary) GetInUseCount

func (x *UsageSummary) GetInUseCount() int32

func (*UsageSummary) GetIndeterminateCount

func (x *UsageSummary) GetIndeterminateCount() int32

func (*UsageSummary) GetLabel

func (x *UsageSummary) GetLabel() string

func (*UsageSummary) GetUnusedCount

func (x *UsageSummary) GetUnusedCount() int32

func (*UsageSummary) ProtoMessage

func (*UsageSummary) ProtoMessage()

func (*UsageSummary) ProtoReflect

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

func (*UsageSummary) Reset

func (x *UsageSummary) Reset()

func (*UsageSummary) String

func (x *UsageSummary) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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