leastprivilegev1alpha1

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 19 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

func (*AccessPath) Validate added in v1.32.1

func (m *AccessPath) Validate() error

Validate checks the field values on AccessPath with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AccessPath) ValidateAll added in v1.32.1

func (m *AccessPath) ValidateAll() error

ValidateAll checks the field values on AccessPath with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccessPathMultiError, or nil if none found.

type AccessPathMultiError added in v1.32.1

type AccessPathMultiError []error

AccessPathMultiError is an error wrapping multiple validation errors returned by AccessPath.ValidateAll() if the designated constraints aren't met.

func (AccessPathMultiError) AllErrors added in v1.32.1

func (m AccessPathMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AccessPathMultiError) Error added in v1.32.1

func (m AccessPathMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AccessPathValidationError added in v1.32.1

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

AccessPathValidationError is the validation error returned by AccessPath.Validate if the designated constraints aren't met.

func (AccessPathValidationError) Cause added in v1.32.1

func (e AccessPathValidationError) Cause() error

Cause function returns cause value.

func (AccessPathValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (AccessPathValidationError) ErrorName added in v1.32.1

func (e AccessPathValidationError) ErrorName() string

ErrorName returns error name.

func (AccessPathValidationError) Field added in v1.32.1

Field function returns field value.

func (AccessPathValidationError) Key added in v1.32.1

Key function returns key value.

func (AccessPathValidationError) Reason added in v1.32.1

func (e AccessPathValidationError) Reason() string

Reason function returns reason value.

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

func (*DownloadEntitlementUsageReportRequest) Validate added in v1.32.1

Validate checks the field values on DownloadEntitlementUsageReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DownloadEntitlementUsageReportRequest) ValidateAll added in v1.32.1

ValidateAll checks the field values on DownloadEntitlementUsageReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DownloadEntitlementUsageReportRequestMultiError, or nil if none found.

type DownloadEntitlementUsageReportRequestMultiError added in v1.32.1

type DownloadEntitlementUsageReportRequestMultiError []error

DownloadEntitlementUsageReportRequestMultiError is an error wrapping multiple validation errors returned by DownloadEntitlementUsageReportRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadEntitlementUsageReportRequestMultiError) AllErrors added in v1.32.1

AllErrors returns a list of validation violation errors.

func (DownloadEntitlementUsageReportRequestMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type DownloadEntitlementUsageReportRequestValidationError added in v1.32.1

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

DownloadEntitlementUsageReportRequestValidationError is the validation error returned by DownloadEntitlementUsageReportRequest.Validate if the designated constraints aren't met.

func (DownloadEntitlementUsageReportRequestValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (DownloadEntitlementUsageReportRequestValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (DownloadEntitlementUsageReportRequestValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (DownloadEntitlementUsageReportRequestValidationError) Field added in v1.32.1

Field function returns field value.

func (DownloadEntitlementUsageReportRequestValidationError) Key added in v1.32.1

Key function returns key value.

func (DownloadEntitlementUsageReportRequestValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*DownloadEntitlementUsageReportResponse) Validate added in v1.32.1

Validate checks the field values on DownloadEntitlementUsageReportResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DownloadEntitlementUsageReportResponse) ValidateAll added in v1.32.1

ValidateAll checks the field values on DownloadEntitlementUsageReportResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DownloadEntitlementUsageReportResponseMultiError, or nil if none found.

type DownloadEntitlementUsageReportResponseMultiError added in v1.32.1

type DownloadEntitlementUsageReportResponseMultiError []error

DownloadEntitlementUsageReportResponseMultiError is an error wrapping multiple validation errors returned by DownloadEntitlementUsageReportResponse.ValidateAll() if the designated constraints aren't met.

func (DownloadEntitlementUsageReportResponseMultiError) AllErrors added in v1.32.1

AllErrors returns a list of validation violation errors.

func (DownloadEntitlementUsageReportResponseMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type DownloadEntitlementUsageReportResponseValidationError added in v1.32.1

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

DownloadEntitlementUsageReportResponseValidationError is the validation error returned by DownloadEntitlementUsageReportResponse.Validate if the designated constraints aren't met.

func (DownloadEntitlementUsageReportResponseValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (DownloadEntitlementUsageReportResponseValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (DownloadEntitlementUsageReportResponseValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (DownloadEntitlementUsageReportResponseValidationError) Field added in v1.32.1

Field function returns field value.

func (DownloadEntitlementUsageReportResponseValidationError) Key added in v1.32.1

Key function returns key value.

func (DownloadEntitlementUsageReportResponseValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*EntitlementUsage) Validate added in v1.32.1

func (m *EntitlementUsage) Validate() error

Validate checks the field values on EntitlementUsage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EntitlementUsage) ValidateAll added in v1.32.1

func (m *EntitlementUsage) ValidateAll() error

ValidateAll checks the field values on EntitlementUsage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntitlementUsageMultiError, or nil if none found.

type EntitlementUsageMultiError added in v1.32.1

type EntitlementUsageMultiError []error

EntitlementUsageMultiError is an error wrapping multiple validation errors returned by EntitlementUsage.ValidateAll() if the designated constraints aren't met.

func (EntitlementUsageMultiError) AllErrors added in v1.32.1

func (m EntitlementUsageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EntitlementUsageMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type EntitlementUsageValidationError added in v1.32.1

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

EntitlementUsageValidationError is the validation error returned by EntitlementUsage.Validate if the designated constraints aren't met.

func (EntitlementUsageValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (EntitlementUsageValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (EntitlementUsageValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (EntitlementUsageValidationError) Field added in v1.32.1

Field function returns field value.

func (EntitlementUsageValidationError) Key added in v1.32.1

Key function returns key value.

func (EntitlementUsageValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*GetHistoricalReportsRequest) Validate added in v1.32.1

func (m *GetHistoricalReportsRequest) Validate() error

Validate checks the field values on GetHistoricalReportsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetHistoricalReportsRequest) ValidateAll added in v1.32.1

func (m *GetHistoricalReportsRequest) ValidateAll() error

ValidateAll checks the field values on GetHistoricalReportsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetHistoricalReportsRequestMultiError, or nil if none found.

type GetHistoricalReportsRequestMultiError added in v1.32.1

type GetHistoricalReportsRequestMultiError []error

GetHistoricalReportsRequestMultiError is an error wrapping multiple validation errors returned by GetHistoricalReportsRequest.ValidateAll() if the designated constraints aren't met.

func (GetHistoricalReportsRequestMultiError) AllErrors added in v1.32.1

AllErrors returns a list of validation violation errors.

func (GetHistoricalReportsRequestMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type GetHistoricalReportsRequestValidationError added in v1.32.1

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

GetHistoricalReportsRequestValidationError is the validation error returned by GetHistoricalReportsRequest.Validate if the designated constraints aren't met.

func (GetHistoricalReportsRequestValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (GetHistoricalReportsRequestValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (GetHistoricalReportsRequestValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (GetHistoricalReportsRequestValidationError) Field added in v1.32.1

Field function returns field value.

func (GetHistoricalReportsRequestValidationError) Key added in v1.32.1

Key function returns key value.

func (GetHistoricalReportsRequestValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*GetHistoricalReportsResponse) Validate added in v1.32.1

func (m *GetHistoricalReportsResponse) Validate() error

Validate checks the field values on GetHistoricalReportsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetHistoricalReportsResponse) ValidateAll added in v1.32.1

func (m *GetHistoricalReportsResponse) ValidateAll() error

ValidateAll checks the field values on GetHistoricalReportsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetHistoricalReportsResponseMultiError, or nil if none found.

type GetHistoricalReportsResponseMultiError added in v1.32.1

type GetHistoricalReportsResponseMultiError []error

GetHistoricalReportsResponseMultiError is an error wrapping multiple validation errors returned by GetHistoricalReportsResponse.ValidateAll() if the designated constraints aren't met.

func (GetHistoricalReportsResponseMultiError) AllErrors added in v1.32.1

AllErrors returns a list of validation violation errors.

func (GetHistoricalReportsResponseMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type GetHistoricalReportsResponseValidationError added in v1.32.1

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

GetHistoricalReportsResponseValidationError is the validation error returned by GetHistoricalReportsResponse.Validate if the designated constraints aren't met.

func (GetHistoricalReportsResponseValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (GetHistoricalReportsResponseValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (GetHistoricalReportsResponseValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (GetHistoricalReportsResponseValidationError) Field added in v1.32.1

Field function returns field value.

func (GetHistoricalReportsResponseValidationError) Key added in v1.32.1

Key function returns key value.

func (GetHistoricalReportsResponseValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*GetLatestReportRequest) Validate added in v1.32.1

func (m *GetLatestReportRequest) Validate() error

Validate checks the field values on GetLatestReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLatestReportRequest) ValidateAll added in v1.32.1

func (m *GetLatestReportRequest) ValidateAll() error

ValidateAll checks the field values on GetLatestReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLatestReportRequestMultiError, or nil if none found.

type GetLatestReportRequestMultiError added in v1.32.1

type GetLatestReportRequestMultiError []error

GetLatestReportRequestMultiError is an error wrapping multiple validation errors returned by GetLatestReportRequest.ValidateAll() if the designated constraints aren't met.

func (GetLatestReportRequestMultiError) AllErrors added in v1.32.1

func (m GetLatestReportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetLatestReportRequestMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type GetLatestReportRequestValidationError added in v1.32.1

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

GetLatestReportRequestValidationError is the validation error returned by GetLatestReportRequest.Validate if the designated constraints aren't met.

func (GetLatestReportRequestValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (GetLatestReportRequestValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (GetLatestReportRequestValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (GetLatestReportRequestValidationError) Field added in v1.32.1

Field function returns field value.

func (GetLatestReportRequestValidationError) Key added in v1.32.1

Key function returns key value.

func (GetLatestReportRequestValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*GetLatestReportResponse) Validate added in v1.32.1

func (m *GetLatestReportResponse) Validate() error

Validate checks the field values on GetLatestReportResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetLatestReportResponse) ValidateAll added in v1.32.1

func (m *GetLatestReportResponse) ValidateAll() error

ValidateAll checks the field values on GetLatestReportResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetLatestReportResponseMultiError, or nil if none found.

type GetLatestReportResponseMultiError added in v1.32.1

type GetLatestReportResponseMultiError []error

GetLatestReportResponseMultiError is an error wrapping multiple validation errors returned by GetLatestReportResponse.ValidateAll() if the designated constraints aren't met.

func (GetLatestReportResponseMultiError) AllErrors added in v1.32.1

func (m GetLatestReportResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetLatestReportResponseMultiError) Error added in v1.32.1

Error returns a concatenation of all the error messages it wraps.

type GetLatestReportResponseValidationError added in v1.32.1

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

GetLatestReportResponseValidationError is the validation error returned by GetLatestReportResponse.Validate if the designated constraints aren't met.

func (GetLatestReportResponseValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (GetLatestReportResponseValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (GetLatestReportResponseValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (GetLatestReportResponseValidationError) Field added in v1.32.1

Field function returns field value.

func (GetLatestReportResponseValidationError) Key added in v1.32.1

Key function returns key value.

func (GetLatestReportResponseValidationError) Reason added in v1.32.1

Reason function returns reason value.

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

func (*Report) Validate added in v1.32.1

func (m *Report) Validate() error

Validate checks the field values on Report with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Report) ValidateAll added in v1.32.1

func (m *Report) ValidateAll() error

ValidateAll checks the field values on Report with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReportMultiError, or nil if none found.

type ReportMultiError added in v1.32.1

type ReportMultiError []error

ReportMultiError is an error wrapping multiple validation errors returned by Report.ValidateAll() if the designated constraints aren't met.

func (ReportMultiError) AllErrors added in v1.32.1

func (m ReportMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReportMultiError) Error added in v1.32.1

func (m ReportMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ReportValidationError added in v1.32.1

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

ReportValidationError is the validation error returned by Report.Validate if the designated constraints aren't met.

func (ReportValidationError) Cause added in v1.32.1

func (e ReportValidationError) Cause() error

Cause function returns cause value.

func (ReportValidationError) Error added in v1.32.1

func (e ReportValidationError) Error() string

Error satisfies the builtin error interface

func (ReportValidationError) ErrorName added in v1.32.1

func (e ReportValidationError) ErrorName() string

ErrorName returns error name.

func (ReportValidationError) Field added in v1.32.1

func (e ReportValidationError) Field() string

Field function returns field value.

func (ReportValidationError) Key added in v1.32.1

func (e ReportValidationError) Key() bool

Key function returns key value.

func (ReportValidationError) Reason added in v1.32.1

func (e ReportValidationError) Reason() string

Reason function returns reason value.

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

func (*UsageSummary) Validate added in v1.32.1

func (m *UsageSummary) Validate() error

Validate checks the field values on UsageSummary with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UsageSummary) ValidateAll added in v1.32.1

func (m *UsageSummary) ValidateAll() error

ValidateAll checks the field values on UsageSummary with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UsageSummaryMultiError, or nil if none found.

type UsageSummaryMultiError added in v1.32.1

type UsageSummaryMultiError []error

UsageSummaryMultiError is an error wrapping multiple validation errors returned by UsageSummary.ValidateAll() if the designated constraints aren't met.

func (UsageSummaryMultiError) AllErrors added in v1.32.1

func (m UsageSummaryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UsageSummaryMultiError) Error added in v1.32.1

func (m UsageSummaryMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UsageSummaryValidationError added in v1.32.1

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

UsageSummaryValidationError is the validation error returned by UsageSummary.Validate if the designated constraints aren't met.

func (UsageSummaryValidationError) Cause added in v1.32.1

Cause function returns cause value.

func (UsageSummaryValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (UsageSummaryValidationError) ErrorName added in v1.32.1

func (e UsageSummaryValidationError) ErrorName() string

ErrorName returns error name.

func (UsageSummaryValidationError) Field added in v1.32.1

Field function returns field value.

func (UsageSummaryValidationError) Key added in v1.32.1

Key function returns key value.

func (UsageSummaryValidationError) Reason added in v1.32.1

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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