log

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil          = "logs/{log}"
	NamePattern_Project      = "projects/{project}/logs/{log}"
	NamePattern_Organization = "organizations/{organization}/logs/{log}"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

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

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) CanBeParentless added in v1.0.21

func (d *Descriptor) CanBeParentless() bool

func (*Descriptor) GetNameDescriptor

func (d *Descriptor) GetNameDescriptor() *gotenresource.NameDescriptor

func (*Descriptor) GetParentResDescriptors added in v1.0.21

func (d *Descriptor) GetParentResDescriptors() []gotenresource.Descriptor

func (*Descriptor) GetResourceTypeName

func (d *Descriptor) GetResourceTypeName() *gotenresource.TypeName

func (*Descriptor) NewGetQuery

func (d *Descriptor) NewGetQuery() gotenresource.GetQuery

func (*Descriptor) NewListQuery

func (d *Descriptor) NewListQuery() gotenresource.ListQuery

func (*Descriptor) NewNameList

func (d *Descriptor) NewNameList(size, reserved int) gotenresource.NameList

func (*Descriptor) NewParentNameList

func (d *Descriptor) NewParentNameList(size, reserved int) gotenresource.ParentNameList

func (*Descriptor) NewParentReferenceList

func (d *Descriptor) NewParentReferenceList(size, reserved int) gotenresource.ParentReferenceList

func (*Descriptor) NewQueryResultChange

func (d *Descriptor) NewQueryResultChange() gotenresource.QueryResultChange

func (*Descriptor) NewQueryResultSnapshot

func (d *Descriptor) NewQueryResultSnapshot() gotenresource.QueryResultSnapshot

func (*Descriptor) NewReferenceList

func (d *Descriptor) NewReferenceList(size, reserved int) gotenresource.ReferenceList

func (*Descriptor) NewResource

func (d *Descriptor) NewResource() gotenresource.Resource

func (*Descriptor) NewResourceChange

func (d *Descriptor) NewResourceChange() gotenresource.ResourceChange

func (*Descriptor) NewResourceChangeList

func (d *Descriptor) NewResourceChangeList(size, reserved int) gotenresource.ResourceChangeList

func (*Descriptor) NewResourceChangeMap

func (d *Descriptor) NewResourceChangeMap(reserved int) gotenresource.ResourceChangeMap

func (*Descriptor) NewResourceCursor

func (d *Descriptor) NewResourceCursor() gotenresource.Cursor

func (*Descriptor) NewResourceFieldMask

func (d *Descriptor) NewResourceFieldMask() gotenobject.FieldMask

func (*Descriptor) NewResourceFilter

func (d *Descriptor) NewResourceFilter() gotenresource.Filter

func (*Descriptor) NewResourceList

func (d *Descriptor) NewResourceList(size, reserved int) gotenresource.ResourceList

func (*Descriptor) NewResourceMap

func (d *Descriptor) NewResourceMap(reserved int) gotenresource.ResourceMap

func (*Descriptor) NewResourceName

func (d *Descriptor) NewResourceName() gotenresource.Name

func (*Descriptor) NewResourceOrderBy

func (d *Descriptor) NewResourceOrderBy() gotenresource.OrderBy

func (*Descriptor) NewResourcePager added in v0.9.0

func (d *Descriptor) NewResourcePager() gotenresource.PagerQuery

func (*Descriptor) NewSearchQuery

func (d *Descriptor) NewSearchQuery() gotenresource.SearchQuery

func (*Descriptor) NewWatchQuery

func (d *Descriptor) NewWatchQuery() gotenresource.WatchQuery

func (*Descriptor) ParseFieldPath

func (d *Descriptor) ParseFieldPath(raw string) (gotenobject.FieldPath, error)

func (*Descriptor) ParseResourceName

func (d *Descriptor) ParseResourceName(nameStr string) (gotenresource.Name, error)

func (*Descriptor) SupportsMetadata added in v1.0.21

func (d *Descriptor) SupportsMetadata() bool

type Filter

type Filter struct {
	FilterCondition
}

func (*Filter) ConvertToNative

func (filter *Filter) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*Filter) ConvertToType

func (filter *Filter) ConvertToType(typeVal ref.Type) ref.Val

func (*Filter) DecodeFirestore

func (filter *Filter) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Filter) EncodeFirestore

func (filter *Filter) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Filter) Equal

func (filter *Filter) Equal(other ref.Val) ref.Val

func (*Filter) Evaluate

func (filter *Filter) Evaluate(res *Log) bool

Evaluate is a wrapper on FilterCondition, which also handles nil pointer

func (*Filter) EvaluateRaw

func (filter *Filter) EvaluateRaw(res gotenresource.Resource) bool

func (*Filter) FilterSlice

func (filter *Filter) FilterSlice(in []*Log) (out []*Log)

FilterSlice is a helper for filtering arrays

func (*Filter) GetCondition

func (filter *Filter) GetCondition() FilterCondition

GetCondition is a getter of FilterCondition, which also handles nil pointer

func (*Filter) GetRawCondition

func (filter *Filter) GetRawCondition() gotenresource.FilterCondition

func (*Filter) HasTrait

func (filter *Filter) HasTrait(trait int) bool

func (*Filter) Match

func (filter *Filter) Match(pattern ref.Val) ref.Val

func (*Filter) ParseProtoString

func (filter *Filter) ParseProtoString(data string) error

func (*Filter) ProtoString

func (filter *Filter) ProtoString() (string, error)

func (*Filter) Receive

func (filter *Filter) Receive(function string, overload string, args []ref.Val) ref.Val

func (*Filter) SetFromCliFlag

func (filter *Filter) SetFromCliFlag(raw string) error

func (*Filter) String

func (filter *Filter) String() string

func (*Filter) Type

func (filter *Filter) Type() ref.Type

func (*Filter) TypeName

func (filter *Filter) TypeName() string

func (*Filter) Value

func (filter *Filter) Value() interface{}

type FilterBuilder

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

func NewAndFilterBuilder

func NewAndFilterBuilder() *FilterBuilder

func NewFilterBuilder

func NewFilterBuilder() *FilterBuilder

func NewOrFilterBuilder

func NewOrFilterBuilder() *FilterBuilder

func (*FilterBuilder) Filter

func (b *FilterBuilder) Filter() *Filter

func (*FilterBuilder) Where

func (b *FilterBuilder) Where(opts ...gotenfilter.FilterConditionOption) *filterCndBuilder

func (*FilterBuilder) WherePath

func (b *FilterBuilder) WherePath(fp Log_FieldPath, opts ...gotenfilter.FilterConditionOption) *filterCndBuilderAnyPath

func (*FilterBuilder) With

type FilterBuilderOrCondition

type FilterBuilderOrCondition interface {
	// contains filtered or unexported methods
}

type FilterCondition

type FilterCondition interface {
	gotenresource.FilterCondition

	And(...FilterCondition) FilterCondition
	Evaluate(res *Log) bool

	// Whether this condition is at least as specific as other.
	// When true, any Log that passes this condition will also pass other condition.
	Satisfies(other FilterCondition) bool

	// Checks whether condition specifies given field path
	// Useful for blacklisting protected paths in iam policy conditions
	SpecifiesFieldPath(fp Log_FieldPath) bool
	// contains filtered or unexported methods
}

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Log_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Log) bool

func (*FilterConditionCompare) EvaluateRaw

func (cond *FilterConditionCompare) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionCompare) GetOperator

func (*FilterConditionCompare) GetRawFieldPath

func (cond *FilterConditionCompare) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionCompare) GetRawFieldPathValue

func (cond *FilterConditionCompare) GetRawFieldPathValue() gotenobject.FieldPathValue

func (*FilterConditionCompare) Satisfies

func (cond *FilterConditionCompare) Satisfies(other FilterCondition) bool

func (*FilterConditionCompare) SatisfiesRaw

func (cond *FilterConditionCompare) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionCompare) SpecifiesFieldPath

func (cond *FilterConditionCompare) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionCompare) SpecifiesRawFieldPath

func (cond *FilterConditionCompare) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionCompare) String

func (cond *FilterConditionCompare) String() string

type FilterConditionComposite

type FilterConditionComposite struct {
	Operator   filterParser.CompositeOperator
	Conditions []FilterCondition
}

func (*FilterConditionComposite) And

func (*FilterConditionComposite) ConditionComposite

func (cond *FilterConditionComposite) ConditionComposite()

func (*FilterConditionComposite) Evaluate

func (cond *FilterConditionComposite) Evaluate(res *Log) bool

func (*FilterConditionComposite) EvaluateRaw

func (cond *FilterConditionComposite) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionComposite) GetOperator

func (*FilterConditionComposite) GetSubConditions

func (cond *FilterConditionComposite) GetSubConditions() []gotenresource.FilterCondition

func (*FilterConditionComposite) Satisfies

func (cond *FilterConditionComposite) Satisfies(other FilterCondition) bool

func (*FilterConditionComposite) SatisfiesRaw

func (cond *FilterConditionComposite) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionComposite) SpecifiesFieldPath

func (cond *FilterConditionComposite) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionComposite) SpecifiesRawFieldPath

func (cond *FilterConditionComposite) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionComposite) String

func (cond *FilterConditionComposite) String() string

type FilterConditionContains

type FilterConditionContains struct {
	Type      gotenresource.ConditionContainsType
	FieldPath Log_FieldPath

	Value  Log_FieldPathArrayItemValue
	Values []Log_FieldPathArrayItemValue
}

func (*FilterConditionContains) And

func (*FilterConditionContains) ConditionContains

func (cond *FilterConditionContains) ConditionContains()

func (*FilterConditionContains) ConditionContainsType

func (cond *FilterConditionContains) ConditionContainsType() gotenresource.ConditionContainsType

func (*FilterConditionContains) Evaluate

func (cond *FilterConditionContains) Evaluate(res *Log) bool

func (*FilterConditionContains) EvaluateRaw

func (cond *FilterConditionContains) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionContains) GetFieldPath

func (cond *FilterConditionContains) GetFieldPath() Log_FieldPath

func (*FilterConditionContains) GetRawFieldPath

func (cond *FilterConditionContains) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionContains) GetRawFieldPathItemValue

func (cond *FilterConditionContains) GetRawFieldPathItemValue() gotenobject.FieldPathArrayItemValue

func (*FilterConditionContains) GetRawFieldPathItemValues

func (cond *FilterConditionContains) GetRawFieldPathItemValues() (res []gotenobject.FieldPathArrayItemValue)

func (*FilterConditionContains) Satisfies

func (cond *FilterConditionContains) Satisfies(other FilterCondition) bool

func (*FilterConditionContains) SatisfiesRaw

func (cond *FilterConditionContains) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionContains) SpecifiesFieldPath

func (cond *FilterConditionContains) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionContains) SpecifiesRawFieldPath

func (cond *FilterConditionContains) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionContains) String

func (cond *FilterConditionContains) String() string

type FilterConditionIn

type FilterConditionIn struct {
	Log_FieldPathArrayOfValues
}

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Log) bool

func (*FilterConditionIn) EvaluateRaw

func (cond *FilterConditionIn) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionIn) GetRawFieldPath

func (cond *FilterConditionIn) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionIn) GetRawFieldPathArrayOfValues

func (cond *FilterConditionIn) GetRawFieldPathArrayOfValues() gotenobject.FieldPathArrayOfValues

func (*FilterConditionIn) Satisfies

func (cond *FilterConditionIn) Satisfies(other FilterCondition) bool

func (*FilterConditionIn) SatisfiesRaw

func (cond *FilterConditionIn) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionIn) SpecifiesFieldPath

func (cond *FilterConditionIn) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionIn) SpecifiesRawFieldPath

func (cond *FilterConditionIn) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionIn) String

func (cond *FilterConditionIn) String() string

type FilterConditionIsNaN

type FilterConditionIsNaN struct {
	Not       bool
	FieldPath Log_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Log) bool

func (*FilterConditionIsNaN) EvaluateRaw

func (cond *FilterConditionIsNaN) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionIsNaN) GetRawFieldPath

func (cond *FilterConditionIsNaN) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionIsNaN) Satisfies

func (cond *FilterConditionIsNaN) Satisfies(other FilterCondition) bool

func (*FilterConditionIsNaN) SatisfiesRaw

func (cond *FilterConditionIsNaN) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionIsNaN) SpecifiesFieldPath

func (cond *FilterConditionIsNaN) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionIsNaN) SpecifiesRawFieldPath

func (cond *FilterConditionIsNaN) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionIsNaN) String

func (cond *FilterConditionIsNaN) String() string

type FilterConditionIsNull

type FilterConditionIsNull struct {
	Not       bool
	FieldPath Log_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Log) bool

func (*FilterConditionIsNull) EvaluateRaw

func (cond *FilterConditionIsNull) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionIsNull) GetRawFieldPath

func (cond *FilterConditionIsNull) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionIsNull) NotNull

func (cond *FilterConditionIsNull) NotNull() bool

func (*FilterConditionIsNull) Satisfies

func (cond *FilterConditionIsNull) Satisfies(other FilterCondition) bool

func (*FilterConditionIsNull) SatisfiesRaw

func (cond *FilterConditionIsNull) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionIsNull) SpecifiesFieldPath

func (cond *FilterConditionIsNull) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionIsNull) SpecifiesRawFieldPath

func (cond *FilterConditionIsNull) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionIsNull) String

func (cond *FilterConditionIsNull) String() string

type FilterConditionNot

type FilterConditionNot struct {
	FilterCondition
}

func (*FilterConditionNot) And

func (*FilterConditionNot) ConditionNot

func (cond *FilterConditionNot) ConditionNot()

func (*FilterConditionNot) Evaluate

func (cond *FilterConditionNot) Evaluate(res *Log) bool

func (*FilterConditionNot) EvaluateRaw

func (cond *FilterConditionNot) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionNot) GetSubCondition

func (cond *FilterConditionNot) GetSubCondition() gotenresource.FilterCondition

func (*FilterConditionNot) Satisfies

func (cond *FilterConditionNot) Satisfies(other FilterCondition) bool

func (*FilterConditionNot) SatisfiesRaw

func (cond *FilterConditionNot) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionNot) SpecifiesFieldPath

func (cond *FilterConditionNot) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionNot) SpecifiesRawFieldPath

func (cond *FilterConditionNot) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionNot) String

func (cond *FilterConditionNot) String() string

type FilterConditionNotIn

type FilterConditionNotIn struct {
	Log_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Log) bool

func (*FilterConditionNotIn) EvaluateRaw

func (cond *FilterConditionNotIn) EvaluateRaw(res gotenresource.Resource) bool

func (*FilterConditionNotIn) GetRawFieldPath

func (cond *FilterConditionNotIn) GetRawFieldPath() gotenobject.FieldPath

func (*FilterConditionNotIn) GetRawFieldPathArrayOfValues

func (cond *FilterConditionNotIn) GetRawFieldPathArrayOfValues() gotenobject.FieldPathArrayOfValues

func (*FilterConditionNotIn) Satisfies

func (cond *FilterConditionNotIn) Satisfies(other FilterCondition) bool

func (*FilterConditionNotIn) SatisfiesRaw

func (cond *FilterConditionNotIn) SatisfiesRaw(other gotenresource.FilterCondition) bool

func (*FilterConditionNotIn) SpecifiesFieldPath

func (cond *FilterConditionNotIn) SpecifiesFieldPath(fp Log_FieldPath) bool

func (*FilterConditionNotIn) SpecifiesRawFieldPath

func (cond *FilterConditionNotIn) SpecifiesRawFieldPath(fp gotenobject.FieldPath) bool

func (*FilterConditionNotIn) String

func (cond *FilterConditionNotIn) String() string

type Log

type Log struct {

	// Name of Log. It contains scope + ID of the log.
	// ID is a base64 encoded unique key that identifies tuple:
	//   scope
	//   service
	//   region_id
	//   version
	//   log_descriptor
	//   labels
	//
	// Key is not to be decoded outside of service, but treated as opaque string
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Contains scope from name field without resource ID.
	// Used for internal purpose for filtering (logs are using custom store).
	// Example formats are:
	// - organization/umbrella
	// - projects/mars_exploration
	// - <system>
	Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty" firestore:"scope"`
	// Service name, for example "devices.edgelq.com"
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty" firestore:"service"`
	// Region of the service to which log is assigned, for example "us-west2"
	Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty" firestore:"region"`
	// Associated service version, for example "v1alpha2"
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty" firestore:"version"`
	// Associated log descriptor
	LogDescriptor *log_descriptor.Reference `` /* 147-byte string literal not displayed */
	// List of query-able labels
	Labels map[string]string `` /* 172-byte string literal not displayed */
	// Log timestamp
	Time *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=time,proto3" json:"time,omitempty" firestore:"time"`
	// Log payload
	Payload *structpb.Struct `protobuf:"bytes,9,opt,name=payload,proto3" json:"payload,omitempty" firestore:"payload"`
	// contains filtered or unexported fields
}

Log Resource

func (*Log) Clone

func (o *Log) Clone() *Log

func (*Log) CloneRaw

func (o *Log) CloneRaw() gotenobject.GotenObjectExt

func (*Log) Descriptor

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

Deprecated, Use Log.ProtoReflect.Descriptor instead.

func (*Log) EnsureMetadata added in v1.0.21

func (r *Log) EnsureMetadata() *meta.Meta

func (*Log) GetLabels

func (m *Log) GetLabels() map[string]string

func (*Log) GetLogDescriptor

func (m *Log) GetLogDescriptor() *log_descriptor.Reference

func (*Log) GetMetadata added in v1.0.21

func (r *Log) GetMetadata() *meta.Meta

func (*Log) GetName

func (m *Log) GetName() *Name

func (*Log) GetPayload

func (m *Log) GetPayload() *structpb.Struct

func (*Log) GetRawName

func (r *Log) GetRawName() gotenresource.Name

func (*Log) GetRegion

func (m *Log) GetRegion() string

func (*Log) GetResourceDescriptor

func (r *Log) GetResourceDescriptor() gotenresource.Descriptor

func (*Log) GetScope

func (m *Log) GetScope() string

func (*Log) GetService

func (m *Log) GetService() string

func (*Log) GetTime

func (m *Log) GetTime() *timestamppb.Timestamp

func (*Log) GetVersion

func (m *Log) GetVersion() string

func (*Log) GotenMessage

func (*Log) GotenMessage()

func (*Log) GotenObjectExt

func (o *Log) GotenObjectExt()

func (*Log) GotenValidate

func (obj *Log) GotenValidate() error

func (*Log) MakeDiffFieldMask

func (o *Log) MakeDiffFieldMask(other *Log) *Log_FieldMask

func (*Log) MakeFullFieldMask

func (o *Log) MakeFullFieldMask() *Log_FieldMask

func (*Log) MakeRawDiffFieldMask

func (o *Log) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask

func (*Log) MakeRawFullFieldMask

func (o *Log) MakeRawFullFieldMask() gotenobject.FieldMask

func (*Log) Marshal

func (m *Log) Marshal() ([]byte, error)

func (*Log) MarshalJSON

func (m *Log) MarshalJSON() ([]byte, error)

func (*Log) MaybePopulateDefaults

func (r *Log) MaybePopulateDefaults() error

func (*Log) Merge

func (o *Log) Merge(source *Log)

func (*Log) MergeRaw

func (o *Log) MergeRaw(source gotenobject.GotenObjectExt)

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (m *Log) ProtoReflect() preflect.Message

func (*Log) Reset

func (m *Log) Reset()

func (*Log) SetLabels

func (m *Log) SetLabels(fv map[string]string)

func (*Log) SetLogDescriptor

func (m *Log) SetLogDescriptor(fv *log_descriptor.Reference)

func (*Log) SetName

func (m *Log) SetName(fv *Name)

func (*Log) SetPayload

func (m *Log) SetPayload(fv *structpb.Struct)

func (*Log) SetRegion

func (m *Log) SetRegion(fv string)

func (*Log) SetScope

func (m *Log) SetScope(fv string)

func (*Log) SetService

func (m *Log) SetService(fv string)

func (*Log) SetTime

func (m *Log) SetTime(fv *timestamppb.Timestamp)

func (*Log) SetVersion

func (m *Log) SetVersion(fv string)

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal

func (m *Log) Unmarshal(b []byte) error

func (*Log) UnmarshalJSON

func (m *Log) UnmarshalJSON(data []byte) error

type LogFieldPathBuilder

type LogFieldPathBuilder struct{}

func NewLogFieldPathBuilder

func NewLogFieldPathBuilder() LogFieldPathBuilder

func (LogFieldPathBuilder) Labels

func (LogFieldPathBuilder) LogDescriptor

func (LogFieldPathBuilder) Name

func (LogFieldPathBuilder) Payload

func (LogFieldPathBuilder) Region

func (LogFieldPathBuilder) Scope

func (LogFieldPathBuilder) Service

func (LogFieldPathBuilder) Time

func (LogFieldPathBuilder) Version

type LogList

type LogList []*Log

func (LogList) Append

func (LogList) AppendList

func (LogList) At

func (l LogList) At(idx int) gotenresource.Resource

func (LogList) Length

func (l LogList) Length() int

func (LogList) Set

func (l LogList) Set(idx int, res gotenresource.Resource)

func (LogList) Slice

func (l LogList) Slice(first, second int) gotenresource.ResourceList

type LogMap

type LogMap map[Name]*Log

func (LogMap) Delete

func (m LogMap) Delete(name gotenresource.Name)

func (LogMap) ForEach

func (m LogMap) ForEach(cb func(gotenresource.Name, gotenresource.Resource) bool)

func (LogMap) Get

func (LogMap) Length

func (m LogMap) Length() int

func (LogMap) Set

func (m LogMap) Set(res gotenresource.Resource)

type LogMapPathSelectorLabels

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

func (LogMapPathSelectorLabels) FieldPath

func (LogMapPathSelectorLabels) WithArrayOfValues

func (s LogMapPathSelectorLabels) WithArrayOfValues(values []string) *Log_FieldPathMapArrayOfValues

func (LogMapPathSelectorLabels) WithValue

type LogNameList

type LogNameList []*Name

func (LogNameList) Append

func (LogNameList) AppendList

func (LogNameList) At

func (l LogNameList) At(idx int) gotenresource.Name

func (LogNameList) Length

func (l LogNameList) Length() int

func (LogNameList) Set

func (l LogNameList) Set(idx int, name gotenresource.Name)

func (LogNameList) Slice

func (l LogNameList) Slice(first, second int) gotenresource.NameList

type LogParentNameList

type LogParentNameList []*ParentName

func (LogParentNameList) Append

func (LogParentNameList) AppendList

func (LogParentNameList) At

func (LogParentNameList) Length

func (l LogParentNameList) Length() int

func (LogParentNameList) Set

func (l LogParentNameList) Set(idx int, name gotenresource.Name)

func (LogParentNameList) Slice

func (l LogParentNameList) Slice(first, second int) gotenresource.ParentNameList

type LogParentReferenceList

type LogParentReferenceList []*ParentReference

func (LogParentReferenceList) Append

func (LogParentReferenceList) At

func (LogParentReferenceList) Length

func (l LogParentReferenceList) Length() int

func (LogParentReferenceList) Set

func (LogParentReferenceList) Slice

type LogPathSelectorLabels

type LogPathSelectorLabels struct{}

func (LogPathSelectorLabels) FieldPath

func (LogPathSelectorLabels) WithArrayOfValues

func (s LogPathSelectorLabels) WithArrayOfValues(values []map[string]string) *Log_FieldTerminalPathArrayOfValues

func (LogPathSelectorLabels) WithKey

func (LogPathSelectorLabels) WithValue

type LogPathSelectorLogDescriptor

type LogPathSelectorLogDescriptor struct{}

func (LogPathSelectorLogDescriptor) FieldPath

func (LogPathSelectorLogDescriptor) WithArrayOfValues

func (LogPathSelectorLogDescriptor) WithValue

type LogPathSelectorName

type LogPathSelectorName struct{}

func (LogPathSelectorName) FieldPath

func (LogPathSelectorName) WithArrayOfValues

func (s LogPathSelectorName) WithArrayOfValues(values []*Name) *Log_FieldTerminalPathArrayOfValues

func (LogPathSelectorName) WithValue

type LogPathSelectorPayload

type LogPathSelectorPayload struct{}

func (LogPathSelectorPayload) FieldPath

func (LogPathSelectorPayload) WithArrayOfValues

func (LogPathSelectorPayload) WithValue

type LogPathSelectorRegion

type LogPathSelectorRegion struct{}

func (LogPathSelectorRegion) FieldPath

func (LogPathSelectorRegion) WithArrayOfValues

func (s LogPathSelectorRegion) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues

func (LogPathSelectorRegion) WithValue

type LogPathSelectorScope

type LogPathSelectorScope struct{}

func (LogPathSelectorScope) FieldPath

func (LogPathSelectorScope) WithArrayOfValues

func (s LogPathSelectorScope) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues

func (LogPathSelectorScope) WithValue

type LogPathSelectorService

type LogPathSelectorService struct{}

func (LogPathSelectorService) FieldPath

func (LogPathSelectorService) WithArrayOfValues

func (s LogPathSelectorService) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues

func (LogPathSelectorService) WithValue

type LogPathSelectorTime

type LogPathSelectorTime struct{}

func (LogPathSelectorTime) FieldPath

func (LogPathSelectorTime) WithArrayOfValues

func (LogPathSelectorTime) WithValue

type LogPathSelectorVersion

type LogPathSelectorVersion struct{}

func (LogPathSelectorVersion) FieldPath

func (LogPathSelectorVersion) WithArrayOfValues

func (s LogPathSelectorVersion) WithArrayOfValues(values []string) *Log_FieldTerminalPathArrayOfValues

func (LogPathSelectorVersion) WithValue

type LogReferenceList

type LogReferenceList []*Reference

func (LogReferenceList) Append

func (LogReferenceList) AppendList

func (LogReferenceList) At

func (LogReferenceList) Length

func (l LogReferenceList) Length() int

func (LogReferenceList) Set

func (l LogReferenceList) Set(idx int, ref gotenresource.Reference)

func (LogReferenceList) Slice

func (l LogReferenceList) Slice(first, second int) gotenresource.ReferenceList

type Log_FieldMask

type Log_FieldMask struct {
	Paths []Log_FieldPath
}

func FullLog_FieldMask

func FullLog_FieldMask() *Log_FieldMask

func ResourceViewFieldMask

func ResourceViewFieldMask(viewName view.View, extraMask *Log_FieldMask) *Log_FieldMask

func (*Log_FieldMask) AppendPath

func (fieldMask *Log_FieldMask) AppendPath(path Log_FieldPath)

func (*Log_FieldMask) AppendRawPath

func (fieldMask *Log_FieldMask) AppendRawPath(path gotenobject.FieldPath)

func (*Log_FieldMask) DecodeFirestore

func (fieldMask *Log_FieldMask) DecodeFirestore(fpbv *firestorepb.Value) error

func (*Log_FieldMask) EncodeFirestore

func (fieldMask *Log_FieldMask) EncodeFirestore() (*firestorepb.Value, error)

firestore encoding/decoding integration

func (*Log_FieldMask) FilterInputFields

func (fieldMask *Log_FieldMask) FilterInputFields() *Log_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Log_FieldMask) FromProtoFieldMask

func (fieldMask *Log_FieldMask) FromProtoFieldMask(protoFieldMask *googlefieldmaskpb.FieldMask) error

func (*Log_FieldMask) GetPaths

func (fieldMask *Log_FieldMask) GetPaths() []Log_FieldPath

func (*Log_FieldMask) GetRawPaths

func (fieldMask *Log_FieldMask) GetRawPaths() []gotenobject.FieldPath

func (*Log_FieldMask) IsFull

func (fieldMask *Log_FieldMask) IsFull() bool

func (Log_FieldMask) Marshal

func (fieldMask Log_FieldMask) Marshal() ([]byte, error)

implement methods required by customType

func (Log_FieldMask) MarshalJSON

func (fieldMask Log_FieldMask) MarshalJSON() ([]byte, error)

func (*Log_FieldMask) PathsCount

func (fieldMask *Log_FieldMask) PathsCount() int

func (*Log_FieldMask) Project

func (fieldMask *Log_FieldMask) Project(source *Log) *Log

func (*Log_FieldMask) ProjectRaw

func (fieldMask *Log_FieldMask) ProjectRaw(source gotenobject.GotenObjectExt) gotenobject.GotenObjectExt

func (*Log_FieldMask) ProtoMessage

func (fieldMask *Log_FieldMask) ProtoMessage()

func (*Log_FieldMask) ProtoReflect

func (fieldMask *Log_FieldMask) ProtoReflect() preflect.Message

func (*Log_FieldMask) Reset

func (fieldMask *Log_FieldMask) Reset()

func (*Log_FieldMask) Set

func (fieldMask *Log_FieldMask) Set(target, source *Log)

func (*Log_FieldMask) SetFromCliFlag

func (fieldMask *Log_FieldMask) SetFromCliFlag(raw string) error

func (*Log_FieldMask) SetRaw

func (fieldMask *Log_FieldMask) SetRaw(target, source gotenobject.GotenObjectExt)

func (*Log_FieldMask) Size

func (fieldMask *Log_FieldMask) Size() int

func (*Log_FieldMask) String

func (fieldMask *Log_FieldMask) String() string

func (*Log_FieldMask) Subtract

func (fieldMask *Log_FieldMask) Subtract(other *Log_FieldMask) *Log_FieldMask

func (*Log_FieldMask) SubtractRaw

func (fieldMask *Log_FieldMask) SubtractRaw(other gotenobject.FieldMask) gotenobject.FieldMask

func (*Log_FieldMask) ToProtoFieldMask

func (fieldMask *Log_FieldMask) ToProtoFieldMask() *googlefieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Log_FieldMask) Unmarshal

func (fieldMask *Log_FieldMask) Unmarshal(data []byte) error

func (*Log_FieldMask) UnmarshalJSON

func (fieldMask *Log_FieldMask) UnmarshalJSON(data []byte) error

type Log_FieldPath

type Log_FieldPath interface {
	gotenobject.FieldPath
	Selector() Log_FieldPathSelector
	Get(source *Log) []interface{}
	GetSingle(source *Log) (interface{}, bool)
	ClearValue(item *Log)

	// Those methods build corresponding Log_FieldPathValue
	// (or array of values) and holds passed value. Panics if injected type is incorrect.
	WithIValue(value interface{}) Log_FieldPathValue
	WithIArrayOfValues(values interface{}) Log_FieldPathArrayOfValues
	WithIArrayItemValue(value interface{}) Log_FieldPathArrayItemValue
}

FieldPath provides implementation to handle https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto

func BuildLog_FieldPath

func BuildLog_FieldPath(fp gotenobject.RawFieldPath) (Log_FieldPath, error)

func MustParseLog_FieldPath

func MustParseLog_FieldPath(rawField string) Log_FieldPath

func ParseLog_FieldPath

func ParseLog_FieldPath(rawField string) (Log_FieldPath, error)

type Log_FieldPathArrayItemValue

type Log_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Log_FieldPath
	ContainsValue(*Log) bool
}

Log_FieldPathArrayItemValue allows storing single item in Path-specific values for Log according to their type Present only for array (repeated) types.

func MustParseLog_FieldPathArrayItemValue

func MustParseLog_FieldPathArrayItemValue(pathStr, valueStr string) Log_FieldPathArrayItemValue

func ParseLog_FieldPathArrayItemValue

func ParseLog_FieldPathArrayItemValue(pathStr, valueStr string) (Log_FieldPathArrayItemValue, error)

ParseLog_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Log_FieldPathArrayOfValues

type Log_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Log_FieldPath
}

Log_FieldPathArrayOfValues allows storing slice of values for Log fields according to their type

func MustParseLog_FieldPathArrayOfValues

func MustParseLog_FieldPathArrayOfValues(pathStr, valuesStr string) Log_FieldPathArrayOfValues

func ParseLog_FieldPathArrayOfValues

func ParseLog_FieldPathArrayOfValues(pathStr, valuesStr string) (Log_FieldPathArrayOfValues, error)

type Log_FieldPathMap

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

FieldPath for map type with additional Key information

func (*Log_FieldPathMap) ClearValue

func (fpm *Log_FieldPathMap) ClearValue(item *Log)

func (*Log_FieldPathMap) ClearValueRaw

func (fpm *Log_FieldPathMap) ClearValueRaw(item proto.Message)

func (*Log_FieldPathMap) Get

func (fpm *Log_FieldPathMap) Get(source *Log) (values []interface{})

Get returns all values pointed by selected field map key from source Log

func (*Log_FieldPathMap) GetDefault

func (fpm *Log_FieldPathMap) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Log_FieldPathMap) GetRaw

func (fpm *Log_FieldPathMap) GetRaw(source proto.Message) []interface{}

func (*Log_FieldPathMap) GetSingle

func (fpm *Log_FieldPathMap) GetSingle(source *Log) (interface{}, bool)

GetSingle returns value by selected field map key from source Log

func (*Log_FieldPathMap) GetSingleRaw

func (fpm *Log_FieldPathMap) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Log_FieldPathMap) IsLeaf

func (fpm *Log_FieldPathMap) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Log_FieldPathMap) JSONString

func (fpm *Log_FieldPathMap) JSONString() string

JSONString returns path representation is JSON convention. Note that map keys are not transformed

func (*Log_FieldPathMap) Key

func (fpm *Log_FieldPathMap) Key() string

func (*Log_FieldPathMap) Selector

func (fpm *Log_FieldPathMap) Selector() Log_FieldPathSelector

func (*Log_FieldPathMap) SplitIntoTerminalIPaths added in v0.8.0

func (fpm *Log_FieldPathMap) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*Log_FieldPathMap) String

func (fpm *Log_FieldPathMap) String() string

String returns path representation in proto convention

func (*Log_FieldPathMap) WithIArrayItemValue

func (fpm *Log_FieldPathMap) WithIArrayItemValue(value interface{}) Log_FieldPathArrayItemValue

func (*Log_FieldPathMap) WithIArrayOfValues

func (fpm *Log_FieldPathMap) WithIArrayOfValues(values interface{}) Log_FieldPathArrayOfValues

func (*Log_FieldPathMap) WithIValue

func (fpm *Log_FieldPathMap) WithIValue(value interface{}) Log_FieldPathValue

func (*Log_FieldPathMap) WithRawIArrayItemValue

func (fpm *Log_FieldPathMap) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Log_FieldPathMap) WithRawIArrayOfValues

func (fpm *Log_FieldPathMap) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Log_FieldPathMap) WithRawIValue

func (fpm *Log_FieldPathMap) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Log_FieldPathMapArrayOfValues

type Log_FieldPathMapArrayOfValues struct {
	Log_FieldPathMap
	// contains filtered or unexported fields
}

func (*Log_FieldPathMapArrayOfValues) AsLabelsArrayOfElementValues

func (fpmaov *Log_FieldPathMapArrayOfValues) AsLabelsArrayOfElementValues() ([]string, bool)

func (*Log_FieldPathMapArrayOfValues) GetRawValues

func (fpmaov *Log_FieldPathMapArrayOfValues) GetRawValues() (values []interface{})

type Log_FieldPathMapValue

type Log_FieldPathMapValue struct {
	Log_FieldPathMap
	// contains filtered or unexported fields
}

func (*Log_FieldPathMapValue) AsLabelsElementValue

func (fpmv *Log_FieldPathMapValue) AsLabelsElementValue() (string, bool)

func (*Log_FieldPathMapValue) CompareWith

func (fpmv *Log_FieldPathMapValue) CompareWith(source *Log) (int, bool)

CompareWith compares value in the 'Log_FieldPathMapValue' with the value under path in 'Log'.

func (*Log_FieldPathMapValue) CompareWithRaw

func (fpmv *Log_FieldPathMapValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Log_FieldPathMapValue) GetRawValue

func (fpmv *Log_FieldPathMapValue) GetRawValue() interface{}

GetValue returns value stored under selected field in Log as interface{}

func (*Log_FieldPathMapValue) SetTo

func (fpmv *Log_FieldPathMapValue) SetTo(target **Log)

SetTo stores value for selected field in Log

func (*Log_FieldPathMapValue) SetToRaw

func (fpmv *Log_FieldPathMapValue) SetToRaw(target proto.Message)

type Log_FieldPathSelector

type Log_FieldPathSelector int32
const (
	Log_FieldPathSelectorName          Log_FieldPathSelector = 0
	Log_FieldPathSelectorScope         Log_FieldPathSelector = 1
	Log_FieldPathSelectorService       Log_FieldPathSelector = 2
	Log_FieldPathSelectorRegion        Log_FieldPathSelector = 3
	Log_FieldPathSelectorVersion       Log_FieldPathSelector = 4
	Log_FieldPathSelectorLogDescriptor Log_FieldPathSelector = 5
	Log_FieldPathSelectorLabels        Log_FieldPathSelector = 6
	Log_FieldPathSelectorTime          Log_FieldPathSelector = 7
	Log_FieldPathSelectorPayload       Log_FieldPathSelector = 8
)

func (Log_FieldPathSelector) String

func (s Log_FieldPathSelector) String() string

type Log_FieldPathValue

type Log_FieldPathValue interface {
	Log_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Log)
	CompareWith(*Log) (cmp int, comparable bool)
}

Log_FieldPathValue allows storing values for Log fields according to their type

func MustParseLog_FieldPathValue

func MustParseLog_FieldPathValue(pathStr, valueStr string) Log_FieldPathValue

func ParseLog_FieldPathValue

func ParseLog_FieldPathValue(pathStr, valueStr string) (Log_FieldPathValue, error)

type Log_FieldTerminalPath

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

func (*Log_FieldTerminalPath) ClearValue

func (fp *Log_FieldTerminalPath) ClearValue(item *Log)

func (*Log_FieldTerminalPath) ClearValueRaw

func (fp *Log_FieldTerminalPath) ClearValueRaw(item proto.Message)

func (*Log_FieldTerminalPath) Get

func (fp *Log_FieldTerminalPath) Get(source *Log) (values []interface{})

Get returns all values pointed by specific field from source Log

func (*Log_FieldTerminalPath) GetDefault

func (fp *Log_FieldTerminalPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Log_FieldTerminalPath) GetRaw

func (fp *Log_FieldTerminalPath) GetRaw(source proto.Message) []interface{}

func (*Log_FieldTerminalPath) GetSingle

func (fp *Log_FieldTerminalPath) GetSingle(source *Log) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Log

func (*Log_FieldTerminalPath) GetSingleRaw

func (fp *Log_FieldTerminalPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Log_FieldTerminalPath) IsLeaf

func (fp *Log_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Log_FieldTerminalPath) JSONString

func (fp *Log_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Log_FieldTerminalPath) Selector

func (*Log_FieldTerminalPath) SplitIntoTerminalIPaths added in v0.8.0

func (fp *Log_FieldTerminalPath) SplitIntoTerminalIPaths() []gotenobject.FieldPath

func (*Log_FieldTerminalPath) String

func (fp *Log_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Log_FieldTerminalPath) WithIArrayItemValue

func (fp *Log_FieldTerminalPath) WithIArrayItemValue(value interface{}) Log_FieldPathArrayItemValue

func (*Log_FieldTerminalPath) WithIArrayOfValues

func (fp *Log_FieldTerminalPath) WithIArrayOfValues(values interface{}) Log_FieldPathArrayOfValues

func (*Log_FieldTerminalPath) WithIValue

func (fp *Log_FieldTerminalPath) WithIValue(value interface{}) Log_FieldPathValue

func (*Log_FieldTerminalPath) WithRawIArrayItemValue

func (fp *Log_FieldTerminalPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Log_FieldTerminalPath) WithRawIArrayOfValues

func (fp *Log_FieldTerminalPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Log_FieldTerminalPath) WithRawIValue

func (fp *Log_FieldTerminalPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Log_FieldTerminalPathArrayItemValue

type Log_FieldTerminalPathArrayItemValue struct {
	Log_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Log_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Log_FieldTerminalPathArrayItemValue) ContainsValue(source *Log) bool

Contains returns a boolean indicating if value that is being held is present in given 'Log'

func (*Log_FieldTerminalPathArrayItemValue) GetRawItemValue

func (fpaiv *Log_FieldTerminalPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored element value for array in object Log as interface{}

func (*Log_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Log_FieldTerminalPathArrayItemValue) GetSingle(source *Log) (interface{}, bool)

func (*Log_FieldTerminalPathArrayItemValue) GetSingleRaw

func (fpaiv *Log_FieldTerminalPathArrayItemValue) GetSingleRaw(source proto.Message) (interface{}, bool)

type Log_FieldTerminalPathArrayOfValues

type Log_FieldTerminalPathArrayOfValues struct {
	Log_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Log_FieldTerminalPathArrayOfValues) AsLabelsArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsLabelsArrayOfValues() ([]map[string]string, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsLogDescriptorArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsLogDescriptorArrayOfValues() ([]*log_descriptor.Reference, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsNameArrayOfValues() ([]*Name, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsPayloadArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsPayloadArrayOfValues() ([]*structpb.Struct, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsRegionArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsRegionArrayOfValues() ([]string, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsScopeArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsScopeArrayOfValues() ([]string, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsServiceArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsServiceArrayOfValues() ([]string, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsTimeArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsTimeArrayOfValues() ([]*timestamppb.Timestamp, bool)

func (*Log_FieldTerminalPathArrayOfValues) AsVersionArrayOfValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) AsVersionArrayOfValues() ([]string, bool)

func (*Log_FieldTerminalPathArrayOfValues) GetRawValues

func (fpaov *Log_FieldTerminalPathArrayOfValues) GetRawValues() (values []interface{})

type Log_FieldTerminalPathValue

type Log_FieldTerminalPathValue struct {
	Log_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Log_FieldTerminalPathValue) AsLabelsValue

func (fpv *Log_FieldTerminalPathValue) AsLabelsValue() (map[string]string, bool)

func (*Log_FieldTerminalPathValue) AsLogDescriptorValue

func (fpv *Log_FieldTerminalPathValue) AsLogDescriptorValue() (*log_descriptor.Reference, bool)

func (*Log_FieldTerminalPathValue) AsNameValue

func (fpv *Log_FieldTerminalPathValue) AsNameValue() (*Name, bool)

func (*Log_FieldTerminalPathValue) AsPayloadValue

func (fpv *Log_FieldTerminalPathValue) AsPayloadValue() (*structpb.Struct, bool)

func (*Log_FieldTerminalPathValue) AsRegionValue

func (fpv *Log_FieldTerminalPathValue) AsRegionValue() (string, bool)

func (*Log_FieldTerminalPathValue) AsScopeValue

func (fpv *Log_FieldTerminalPathValue) AsScopeValue() (string, bool)

func (*Log_FieldTerminalPathValue) AsServiceValue

func (fpv *Log_FieldTerminalPathValue) AsServiceValue() (string, bool)

func (*Log_FieldTerminalPathValue) AsTimeValue

func (fpv *Log_FieldTerminalPathValue) AsTimeValue() (*timestamppb.Timestamp, bool)

func (*Log_FieldTerminalPathValue) AsVersionValue

func (fpv *Log_FieldTerminalPathValue) AsVersionValue() (string, bool)

func (*Log_FieldTerminalPathValue) CompareWith

func (fpv *Log_FieldTerminalPathValue) CompareWith(source *Log) (int, bool)

CompareWith compares value in the 'Log_FieldTerminalPathValue' with the value under path in 'Log'.

func (*Log_FieldTerminalPathValue) CompareWithRaw

func (fpv *Log_FieldTerminalPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Log_FieldTerminalPathValue) GetRawValue

func (fpv *Log_FieldTerminalPathValue) GetRawValue() interface{}

GetRawValue returns raw value stored under selected path for 'Log' as interface{}

func (*Log_FieldTerminalPathValue) SetTo

func (fpv *Log_FieldTerminalPathValue) SetTo(target **Log)

SetTo stores value for selected field for object Log

func (*Log_FieldTerminalPathValue) SetToRaw

func (fpv *Log_FieldTerminalPathValue) SetToRaw(target proto.Message)

type Name

type Name struct {
	ParentName
	LogId string `firestore:"logId"`
}

func MustParseName

func MustParseName(name string) *Name

func ParseName

func ParseName(name string) (*Name, error)

func ParseNameOrId

func ParseNameOrId(nameOrId string) (*Name, error)

func (*Name) AsRawReference

func (name *Name) AsRawReference() gotenresource.Reference

func (*Name) AsReference

func (name *Name) AsReference() *Reference

func (*Name) ConvertToNative

func (name *Name) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*Name) ConvertToType

func (name *Name) ConvertToType(typeVal ref.Type) ref.Val

func (*Name) Equal

func (name *Name) Equal(other ref.Val) ref.Val

func (*Name) FullyQualifiedName

func (name *Name) FullyQualifiedName() (string, error)

func (*Name) GetIParentName added in v0.8.0

func (name *Name) GetIParentName() gotenresource.Name

func (*Name) GetIUnderlyingParentName added in v0.8.0

func (name *Name) GetIUnderlyingParentName() gotenresource.Name

func (*Name) GetIdParts

func (name *Name) GetIdParts() map[string]string

func (*Name) GetOrganizationName

func (name *Name) GetOrganizationName() *iam_organization.Name

func (*Name) GetPattern

func (name *Name) GetPattern() gotenresource.NamePattern

func (*Name) GetProjectName

func (name *Name) GetProjectName() *iam_project.Name

func (*Name) GetResourceDescriptor

func (name *Name) GetResourceDescriptor() gotenresource.Descriptor

func (*Name) GetSegments

func (name *Name) GetSegments() gotenresource.NameSegments

func (*Name) GotenEqual

func (name *Name) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*Name) HasTrait

func (name *Name) HasTrait(trait int) bool

func (*Name) IsFullyQualified

func (name *Name) IsFullyQualified() bool

func (*Name) IsSpecified

func (name *Name) IsSpecified() bool

func (*Name) Match

func (name *Name) Match(pattern ref.Val) ref.Val

func (*Name) Matches

func (name *Name) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*Name) ParseProtoString

func (name *Name) ParseProtoString(data string) error

func (*Name) ProtoString

func (name *Name) ProtoString() (string, error)

func (*Name) Receive

func (name *Name) Receive(function string, overload string, args []ref.Val) ref.Val

func (*Name) SetFromCliFlag

func (name *Name) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*Name) SetFromSegments

func (name *Name) SetFromSegments(segments gotenresource.NameSegments) error

func (*Name) String

func (name *Name) String() string

func (*Name) Type

func (name *Name) Type() ref.Type

func (*Name) TypeName

func (name *Name) TypeName() string

func (*Name) Value

func (name *Name) Value() interface{}

type NameBuilder

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

func NewNameBuilder

func NewNameBuilder() *NameBuilder

func (*NameBuilder) Name

func (b *NameBuilder) Name() *Name

func (*NameBuilder) Parent

func (b *NameBuilder) Parent() *ParentName

func (*NameBuilder) ParentReference

func (b *NameBuilder) ParentReference() *ParentReference

func (*NameBuilder) Reference

func (b *NameBuilder) Reference() *Reference

func (*NameBuilder) SetId

func (b *NameBuilder) SetId(id string) *NameBuilder

func (*NameBuilder) SetOrganization

func (b *NameBuilder) SetOrganization(parent *iam_organization.Name) *NameBuilder

func (*NameBuilder) SetOrganizationId

func (b *NameBuilder) SetOrganizationId(id string) *NameBuilder

func (*NameBuilder) SetProject

func (b *NameBuilder) SetProject(parent *iam_project.Name) *NameBuilder

func (*NameBuilder) SetProjectId

func (b *NameBuilder) SetProjectId(id string) *NameBuilder

type NamePattern

type NamePattern struct {
	Pattern gotenresource.NamePattern `firestore:"pattern"`
}

type ParentName

type ParentName struct {
	NamePattern
	ProjectId      string `firestore:"projectId"`
	OrganizationId string `firestore:"organizationId"`
}

func MustParseParentName

func MustParseParentName(name string) *ParentName

func ParseParentName

func ParseParentName(name string) (*ParentName, error)

func (*ParentName) AsRawReference

func (name *ParentName) AsRawReference() gotenresource.Reference

func (*ParentName) AsReference

func (name *ParentName) AsReference() *ParentReference

func (*ParentName) ConvertToNative added in v1.0.21

func (name *ParentName) ConvertToNative(typeDesc reflect.Type) (interface{}, error)

func (*ParentName) ConvertToType added in v1.0.21

func (name *ParentName) ConvertToType(typeVal ref.Type) ref.Val

func (*ParentName) DescendsFrom

func (name *ParentName) DescendsFrom(ancestor string) bool

func (*ParentName) Equal added in v1.0.21

func (name *ParentName) Equal(other ref.Val) ref.Val

func (*ParentName) FullyQualifiedName

func (name *ParentName) FullyQualifiedName() (string, error)

func (*ParentName) GetIParentName added in v0.8.0

func (name *ParentName) GetIParentName() gotenresource.Name

func (*ParentName) GetIUnderlyingParentName added in v0.8.0

func (name *ParentName) GetIUnderlyingParentName() gotenresource.Name

func (*ParentName) GetIdParts

func (name *ParentName) GetIdParts() map[string]string

func (*ParentName) GetOrganizationName

func (name *ParentName) GetOrganizationName() *iam_organization.Name

func (*ParentName) GetPattern

func (name *ParentName) GetPattern() gotenresource.NamePattern

func (*ParentName) GetProjectName

func (name *ParentName) GetProjectName() *iam_project.Name

func (*ParentName) GetResourceDescriptor

func (name *ParentName) GetResourceDescriptor() gotenresource.Descriptor

func (*ParentName) GetSegments

func (name *ParentName) GetSegments() gotenresource.NameSegments

func (*ParentName) GotenEqual

func (name *ParentName) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*ParentName) HasTrait added in v1.0.21

func (name *ParentName) HasTrait(trait int) bool

func (*ParentName) IsFullyQualified

func (name *ParentName) IsFullyQualified() bool

func (*ParentName) IsSpecified

func (name *ParentName) IsSpecified() bool

func (*ParentName) Match added in v1.0.21

func (name *ParentName) Match(pattern ref.Val) ref.Val

func (*ParentName) Matches

func (name *ParentName) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*ParentName) ParseProtoString

func (name *ParentName) ParseProtoString(data string) error

func (*ParentName) ProtoString

func (name *ParentName) ProtoString() (string, error)

func (*ParentName) Receive added in v1.0.21

func (name *ParentName) Receive(function string, overload string, args []ref.Val) ref.Val

func (*ParentName) SetFromCliFlag

func (name *ParentName) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*ParentName) SetFromSegments

func (name *ParentName) SetFromSegments(segments gotenresource.NameSegments) error

func (*ParentName) String

func (name *ParentName) String() string

func (*ParentName) Type added in v1.0.21

func (name *ParentName) Type() ref.Type

func (*ParentName) TypeName added in v1.0.21

func (name *ParentName) TypeName() string

func (*ParentName) Value added in v1.0.21

func (name *ParentName) Value() interface{}

type ParentReference

type ParentReference struct {
	ParentName
	// contains filtered or unexported fields
}

func MakeParentReference

func MakeParentReference(name *ParentName) (*ParentReference, error)

func MustParseParentReference

func MustParseParentReference(name string) *ParentReference

func ParseParentReference

func ParseParentReference(name string) (*ParentReference, error)

func (*ParentReference) ClearCached

func (ref *ParentReference) ClearCached()

func (*ParentReference) GetIParentName added in v0.8.0

func (ref *ParentReference) GetIParentName() gotenresource.Name

func (*ParentReference) GetIUnderlyingParentName added in v0.8.0

func (ref *ParentReference) GetIUnderlyingParentName() gotenresource.Name

func (*ParentReference) GetIdParts

func (ref *ParentReference) GetIdParts() map[string]string

func (*ParentReference) GetOrganization

func (ref *ParentReference) GetOrganization() *iam_organization.Organization

func (*ParentReference) GetOrganizationReference

func (ref *ParentReference) GetOrganizationReference() *iam_organization.Reference

func (*ParentReference) GetPattern

func (ref *ParentReference) GetPattern() gotenresource.NamePattern

func (*ParentReference) GetProject

func (ref *ParentReference) GetProject() *iam_project.Project

func (*ParentReference) GetProjectReference

func (ref *ParentReference) GetProjectReference() *iam_project.Reference

func (*ParentReference) GetRawResource

func (ref *ParentReference) GetRawResource() gotenresource.Resource

func (*ParentReference) GetResourceDescriptor

func (ref *ParentReference) GetResourceDescriptor() gotenresource.Descriptor

func (*ParentReference) GetSegments

func (ref *ParentReference) GetSegments() gotenresource.NameSegments

func (*ParentReference) GetUnderlyingReference

func (ref *ParentReference) GetUnderlyingReference() gotenresource.Reference

func (*ParentReference) GotenEqual

func (ref *ParentReference) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*ParentReference) IsFullyQualified

func (ref *ParentReference) IsFullyQualified() bool

func (*ParentReference) IsSpecified

func (ref *ParentReference) IsSpecified() bool

func (*ParentReference) Matches

func (name *ParentReference) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*ParentReference) ParseProtoString

func (ref *ParentReference) ParseProtoString(data string) error

func (*ParentReference) ProtoString

func (ref *ParentReference) ProtoString() (string, error)

func (*ParentReference) ResolveRaw

func (ref *ParentReference) ResolveRaw(res gotenresource.Resource) error

func (*ParentReference) Resolved

func (ref *ParentReference) Resolved() bool

func (*ParentReference) SetFromCliFlag

func (ref *ParentReference) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*ParentReference) String

func (ref *ParentReference) String() string

type Reference

type Reference struct {
	Name
	// contains filtered or unexported fields
}

func MakeReference

func MakeReference(name *Name, log *Log) (*Reference, error)

func MustParseReference

func MustParseReference(name string) *Reference

func ParseReference

func ParseReference(name string) (*Reference, error)

func (*Reference) ClearCached

func (ref *Reference) ClearCached()

func (*Reference) FullyQualifiedName

func (ref *Reference) FullyQualifiedName() (string, error)

func (*Reference) GetIParentName added in v0.8.0

func (ref *Reference) GetIParentName() gotenresource.Name

func (*Reference) GetIUnderlyingParentName added in v0.8.0

func (ref *Reference) GetIUnderlyingParentName() gotenresource.Name

func (*Reference) GetIdParts

func (ref *Reference) GetIdParts() map[string]string

func (*Reference) GetLog

func (ref *Reference) GetLog() *Log

func (*Reference) GetPattern

func (ref *Reference) GetPattern() gotenresource.NamePattern

func (*Reference) GetRawResource

func (ref *Reference) GetRawResource() gotenresource.Resource

func (*Reference) GetResourceDescriptor

func (ref *Reference) GetResourceDescriptor() gotenresource.Descriptor

func (*Reference) GetSegments

func (ref *Reference) GetSegments() gotenresource.NameSegments

func (*Reference) GotenEqual

func (ref *Reference) GotenEqual(other interface{}) bool

GotenEqual returns true if other is of same type and paths are equal (implements goten.Equaler interface)

func (*Reference) IsFullyQualified

func (ref *Reference) IsFullyQualified() bool

func (*Reference) IsSpecified

func (ref *Reference) IsSpecified() bool

func (*Reference) Matches

func (name *Reference) Matches(other interface{}) bool

Matches is same as GotenEqual, but also will accept "other" if name is wildcard.

func (*Reference) ParseProtoString

func (ref *Reference) ParseProtoString(data string) error

func (*Reference) ProtoString

func (ref *Reference) ProtoString() (string, error)

func (*Reference) Resolve

func (ref *Reference) Resolve(resolved *Log)

func (*Reference) ResolveRaw

func (ref *Reference) ResolveRaw(res gotenresource.Resource) error

func (*Reference) Resolved

func (ref *Reference) Resolved() bool

func (*Reference) SetFromCliFlag

func (ref *Reference) SetFromCliFlag(raw string) error

implement CustomTypeCliValue method

func (*Reference) String

func (ref *Reference) String() string

Jump to

Keyboard shortcuts

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