role

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePattern_Nil = "roles/{role}"
)

Variables

This section is empty.

Functions

func AsAnyCastAccess

func AsAnyCastAccess(access RoleAccess) gotenresource.Access

Types

type Descriptor

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

func GetDescriptor

func GetDescriptor() *Descriptor

func (*Descriptor) GetNameDescriptor

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

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 added in v0.4.16

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

func (*Descriptor) NewResourceFilter added in v0.4.16

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 added in v0.4.16

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

func (*Descriptor) NewSearchQuery

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

func (*Descriptor) NewSearchQueryResultSnapshot

func (d *Descriptor) NewSearchQueryResultSnapshot() gotenresource.SearchQueryResultSnapshot

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)

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 *Role) 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 []*Role) (out []*Role)

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 Role_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 *Role) bool

	// Whether this condition is at least as specific as other.
	// When true, any Role 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 Role_FieldPath) bool
	// contains filtered or unexported methods
}

func AndFilterConditions

func AndFilterConditions(conds ...FilterCondition) FilterCondition

type FilterConditionCompare

type FilterConditionCompare struct {
	Operator filterParser.CompareOperator
	Role_FieldPathValue
}

func (*FilterConditionCompare) And

func (*FilterConditionCompare) ConditionCompare

func (cond *FilterConditionCompare) ConditionCompare()

func (*FilterConditionCompare) Evaluate

func (cond *FilterConditionCompare) Evaluate(res *Role) 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 Role_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 *Role) 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 Role_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 Role_FieldPath

	Value  Role_FieldPathArrayItemValue
	Values []Role_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 *Role) bool

func (*FilterConditionContains) EvaluateRaw

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

func (*FilterConditionContains) GetFieldPath

func (cond *FilterConditionContains) GetFieldPath() Role_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 Role_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 {
	Role_FieldPathArrayOfValues
}

func (*FilterConditionIn) And

func (*FilterConditionIn) ConditionIn

func (cond *FilterConditionIn) ConditionIn()

func (*FilterConditionIn) Evaluate

func (cond *FilterConditionIn) Evaluate(res *Role) 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 Role_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 Role_FieldPath
}

func (*FilterConditionIsNaN) And

func (*FilterConditionIsNaN) ConditionIsNaN

func (cond *FilterConditionIsNaN) ConditionIsNaN()

func (*FilterConditionIsNaN) Evaluate

func (cond *FilterConditionIsNaN) Evaluate(res *Role) 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 Role_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 Role_FieldPath
}

func (*FilterConditionIsNull) And

func (*FilterConditionIsNull) ConditionIsNull

func (cond *FilterConditionIsNull) ConditionIsNull()

func (*FilterConditionIsNull) Evaluate

func (cond *FilterConditionIsNull) Evaluate(res *Role) 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 Role_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 *Role) 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 Role_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 {
	Role_FieldPathArrayOfValues
}

func (*FilterConditionNotIn) And

func (*FilterConditionNotIn) ConditionNotIn

func (cond *FilterConditionNotIn) ConditionNotIn()

func (*FilterConditionNotIn) Evaluate

func (cond *FilterConditionNotIn) Evaluate(res *Role) 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 Role_FieldPath) bool

func (*FilterConditionNotIn) SpecifiesRawFieldPath

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

func (*FilterConditionNotIn) String

func (cond *FilterConditionNotIn) String() string

type GetQuery

type GetQuery struct {
	Reference *Reference
	Mask      *Role_FieldMask
}

func (*GetQuery) GetFieldMask

func (q *GetQuery) GetFieldMask() gotenobject.FieldMask

func (*GetQuery) GetReference

func (q *GetQuery) GetReference() gotenresource.Reference

func (*GetQuery) GetResourceDescriptor

func (q *GetQuery) GetResourceDescriptor() gotenresource.Descriptor

func (*GetQuery) GotenQuery

func (q *GetQuery) GotenQuery()

func (*GetQuery) SetFieldMask

func (q *GetQuery) SetFieldMask(mask gotenobject.FieldMask)

func (*GetQuery) SetReference

func (q *GetQuery) SetReference(ref gotenresource.Reference)

func (*GetQuery) String

func (q *GetQuery) String() string

type ListQuery

type ListQuery struct {
	Filter *Filter
	Pager  *PagerQuery
	Mask   *Role_FieldMask
}

func (*ListQuery) GetFieldMask

func (q *ListQuery) GetFieldMask() gotenobject.FieldMask

func (*ListQuery) GetFilter

func (q *ListQuery) GetFilter() gotenresource.Filter

func (*ListQuery) GetPager

func (q *ListQuery) GetPager() gotenresource.PagerQuery

func (*ListQuery) GetResourceDescriptor

func (q *ListQuery) GetResourceDescriptor() gotenresource.Descriptor

func (*ListQuery) GotenQuery

func (q *ListQuery) GotenQuery()

func (*ListQuery) SetFieldMask

func (q *ListQuery) SetFieldMask(mask gotenobject.FieldMask)

func (*ListQuery) SetFilter

func (q *ListQuery) SetFilter(filter gotenresource.Filter)

func (*ListQuery) SetPager

func (q *ListQuery) SetPager(pager gotenresource.PagerQuery)

func (*ListQuery) String

func (q *ListQuery) String() string

type Name

type Name struct {
	NamePattern
	RoleId string `firestore:"roleId"`
}

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) GetIdParts

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

func (*Name) GetPattern

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

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) Reference

func (b *NameBuilder) Reference() *Reference

func (*NameBuilder) SetId

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

type NamePattern

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

type OrderBy

type OrderBy struct {
	OrderByFields []OrderByField
}

OrderBy Is string encoded Custom Protobuf type, which handles "order_by" field order_by consists of coma delimited OrderBy specs, which denote ordering priority, e.g. "state.value asc, state.capacity desc"

func (*OrderBy) Compare

func (orderBy *OrderBy) Compare(left, right *Role) int

func (*OrderBy) CompareRaw

func (orderBy *OrderBy) CompareRaw(left, right gotenresource.Resource) int

func (*OrderBy) GetFieldMask

func (orderBy *OrderBy) GetFieldMask() *Role_FieldMask

func (*OrderBy) GetOrderByFields

func (orderBy *OrderBy) GetOrderByFields() []gotenresource.OrderByField

func (*OrderBy) GetRawFieldMask

func (orderBy *OrderBy) GetRawFieldMask() gotenobject.FieldMask

func (*OrderBy) InsertSorted

func (orderBy *OrderBy) InsertSorted(sorted RoleList, elem *Role) (RoleList, int)

func (*OrderBy) InsertSortedRaw

func (orderBy *OrderBy) InsertSortedRaw(sorted gotenresource.ResourceList, elem gotenresource.Resource) (gotenresource.ResourceList, int)

func (*OrderBy) ParseProtoString

func (orderBy *OrderBy) ParseProtoString(data string) error

func (*OrderBy) ProtoString

func (orderBy *OrderBy) ProtoString() (string, error)

func (*OrderBy) SetFromCliFlag

func (orderBy *OrderBy) SetFromCliFlag(raw string) error

func (*OrderBy) Sort

func (orderBy *OrderBy) Sort(results RoleList)

func (*OrderBy) SortRaw

func (orderBy *OrderBy) SortRaw(results gotenresource.ResourceList)

func (*OrderBy) String

func (orderBy *OrderBy) String() string

type OrderByField

type OrderByField struct {
	FieldPath Role_FieldPath
	Direction gotenresource.OrderDirection
}

OrderByField is single item in order_by specification it's string format is composed of 2 white-space separated values: - fieldPath and direction, e.g. "state.capacity desc". if direction is not provided, it defaults to "asc" (ascending)

func (*OrderByField) CompareWithDirection

func (orderByFld *OrderByField) CompareWithDirection(left, right *Role) int

func (*OrderByField) GetDirection

func (orderByFld *OrderByField) GetDirection() gotenresource.OrderDirection

func (*OrderByField) GetFieldPath

func (orderByFld *OrderByField) GetFieldPath() gotenobject.FieldPath

type PagerCursor

type PagerCursor struct {
	CursorValue   gotenresource.CursorValue
	Inclusion     gotenresource.CursorInclusion
	PageDirection gotenresource.PageDirection
}

PagerCursor is protobuf Custom Type, which (de)serializes "string page_token" for API List processing Database adapter implementation must use this cursor when Paginating list views Token is composed of 3 values (dot separated in serialized form) - CursorValue: Backend-specific value of the cursor. - PageDirection: either l (left) or r (right), which hints DB Adapter whether Snapshot marks Start or End of result - Inclusion: either i (inclusive) or e (exclusive) - Whether cursor marks exact point or right before/after (depending on direction)

func (*PagerCursor) GetInclusion

func (cursor *PagerCursor) GetInclusion() gotenresource.CursorInclusion

func (*PagerCursor) GetPageDirection

func (cursor *PagerCursor) GetPageDirection() gotenresource.PageDirection

func (*PagerCursor) GetValue

func (cursor *PagerCursor) GetValue() gotenresource.CursorValue

func (*PagerCursor) IsEmpty

func (cursor *PagerCursor) IsEmpty() bool

func (*PagerCursor) ParseProtoString

func (cursor *PagerCursor) ParseProtoString(data string) (err error)

func (*PagerCursor) ProtoString

func (cursor *PagerCursor) ProtoString() (string, error)

func (*PagerCursor) SetCursorValue

func (cursor *PagerCursor) SetCursorValue(value gotenresource.CursorValue)

func (*PagerCursor) SetFromCliFlag

func (cursor *PagerCursor) SetFromCliFlag(raw string) error

func (*PagerCursor) SetInclusion

func (cursor *PagerCursor) SetInclusion(inclusion gotenresource.CursorInclusion)

func (*PagerCursor) SetPageDirection

func (cursor *PagerCursor) SetPageDirection(direction gotenresource.PageDirection)

func (*PagerCursor) String

func (cursor *PagerCursor) String() string

type PagerQuery

type PagerQuery struct {
	OrderBy     *OrderBy
	Cursor      *PagerCursor
	Limit       int
	PeekForward bool
}

PagerQuery is main struct used for assisting server and database to perform Pagination

func MakePagerQuery

func MakePagerQuery(orderBy *OrderBy, cursor *PagerCursor, pageSize int32, peekForward bool) *PagerQuery

MakePagerQuery builds pager from API data and applies defaults

func (*PagerQuery) GetCursor

func (p *PagerQuery) GetCursor() gotenresource.Cursor

func (*PagerQuery) GetLimit

func (p *PagerQuery) GetLimit() int

func (*PagerQuery) GetOrderBy

func (p *PagerQuery) GetOrderBy() gotenresource.OrderBy

func (*PagerQuery) GetPeekForward

func (p *PagerQuery) GetPeekForward() bool

func (*PagerQuery) GetResourceDescriptor

func (p *PagerQuery) GetResourceDescriptor() gotenresource.Descriptor

func (*PagerQuery) PageDirection

func (p *PagerQuery) PageDirection() gotenresource.PageDirection

type QueryResultChange

type QueryResultChange struct {
	Changes        []*RoleChange
	PrevPageCursor *PagerCursor
	NextPageCursor *PagerCursor
	ResumeToken    string
	IsCurrent      bool
	IsHardReset    bool
	IsSoftReset    bool
	SnapshotSize   int64
}

func (*QueryResultChange) GetIsCurrent

func (qr *QueryResultChange) GetIsCurrent() bool

func (*QueryResultChange) GetIsHardReset

func (qr *QueryResultChange) GetIsHardReset() bool

func (*QueryResultChange) GetIsSoftReset

func (qr *QueryResultChange) GetIsSoftReset() bool

func (*QueryResultChange) GetNextPageCursor

func (qr *QueryResultChange) GetNextPageCursor() gotenresource.Cursor

func (*QueryResultChange) GetPrevPageCursor

func (qr *QueryResultChange) GetPrevPageCursor() gotenresource.Cursor

func (*QueryResultChange) GetResults

func (*QueryResultChange) GetResumeToken

func (qr *QueryResultChange) GetResumeToken() string

func (*QueryResultChange) GetSnapshotSize

func (qr *QueryResultChange) GetSnapshotSize() int64

func (*QueryResultChange) SetCursors

func (qr *QueryResultChange) SetCursors(nextPageCursor, prevPageCursor gotenresource.Cursor)

func (*QueryResultChange) SetIsCurrent

func (qr *QueryResultChange) SetIsCurrent()

func (*QueryResultChange) SetIsHardReset

func (qr *QueryResultChange) SetIsHardReset()

func (*QueryResultChange) SetIsSoftReset

func (qr *QueryResultChange) SetIsSoftReset()

func (*QueryResultChange) SetResults

func (qr *QueryResultChange) SetResults(results gotenresource.ResourceChangeList)

func (*QueryResultChange) SetResumeToken

func (qr *QueryResultChange) SetResumeToken(token string)

func (*QueryResultChange) SetSnapshotSize

func (qr *QueryResultChange) SetSnapshotSize(size int64)

type QueryResultSnapshot

type QueryResultSnapshot struct {
	Roles          []*Role
	PrevPageCursor *PagerCursor
	NextPageCursor *PagerCursor
}

func (*QueryResultSnapshot) GetNextPageCursor

func (qr *QueryResultSnapshot) GetNextPageCursor() gotenresource.Cursor

func (*QueryResultSnapshot) GetPrevPageCursor

func (qr *QueryResultSnapshot) GetPrevPageCursor() gotenresource.Cursor

func (*QueryResultSnapshot) GetResults

func (*QueryResultSnapshot) SetCursors

func (qr *QueryResultSnapshot) SetCursors(nextPageCursor, prevPageCursor gotenresource.Cursor)

func (*QueryResultSnapshot) SetResults

func (qr *QueryResultSnapshot) SetResults(results gotenresource.ResourceList)

type Reference

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

func MakeReference

func MakeReference(name *Name, role *Role) (*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) GetIdParts

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

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) GetRole

func (ref *Reference) GetRole() *Role

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 *Role)

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

type Role

type Role struct {

	// Name of Role
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Display Name
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty" firestore:"displayName"`
	// Included Permissions in this Role. Binding this role grants all following
	// Permissions.
	IncludedPermissions []*permission.Reference `` /* 171-byte string literal not displayed */
	// Default conditionBinding (optional)
	DefaultConditionBinding *condition.ConditionBinding `` /* 168-byte string literal not displayed */
	// contains filtered or unexported fields
}

Role is a named bag of [Permissions][ntt.iam.v1alpha.Permission] that can be granted on certain scope (system, organization or project) to member (user, service account, group, anyone) with [RoleBinding].

Note: currently roles are defined as system-level resources, but per-organization or per-project support is expected.

func (*Role) Clone

func (o *Role) Clone() *Role

func (*Role) CloneRaw

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

func (*Role) Descriptor

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

Deprecated, Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetDefaultConditionBinding

func (m *Role) GetDefaultConditionBinding() *condition.ConditionBinding

func (*Role) GetDisplayName

func (m *Role) GetDisplayName() string

func (*Role) GetIncludedPermissions

func (m *Role) GetIncludedPermissions() []*permission.Reference

func (*Role) GetName

func (m *Role) GetName() *Name

func (*Role) GetRawName

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

func (*Role) GetResourceDescriptor

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

func (*Role) GotenMessage

func (*Role) GotenMessage()

func (*Role) GotenObjectExt

func (o *Role) GotenObjectExt()

func (*Role) GotenValidate

func (obj *Role) GotenValidate() error

func (*Role) MakeDiffFieldMask

func (o *Role) MakeDiffFieldMask(other *Role) *Role_FieldMask

func (*Role) MakeFullFieldMask

func (o *Role) MakeFullFieldMask() *Role_FieldMask

func (*Role) MakeRawDiffFieldMask

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

func (*Role) MakeRawFullFieldMask

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

func (*Role) Marshal

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

func (*Role) MarshalJSON

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

func (*Role) MaybePopulateDefaults

func (r *Role) MaybePopulateDefaults() error

func (*Role) Merge

func (o *Role) Merge(source *Role)

func (*Role) MergeRaw

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

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (m *Role) Reset()

func (*Role) SetDefaultConditionBinding

func (m *Role) SetDefaultConditionBinding(fv *condition.ConditionBinding)

func (*Role) SetDisplayName

func (m *Role) SetDisplayName(fv string)

func (*Role) SetIncludedPermissions

func (m *Role) SetIncludedPermissions(fv []*permission.Reference)

func (*Role) SetName

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

func (*Role) String

func (m *Role) String() string

func (*Role) Unmarshal

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

func (*Role) UnmarshalJSON

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

type RoleChange

type RoleChange struct {

	// Role change
	//
	// Types that are valid to be assigned to ChangeType:
	//	*RoleChange_Added_
	//	*RoleChange_Modified_
	//	*RoleChange_Current_
	//	*RoleChange_Removed_
	ChangeType isRoleChange_ChangeType `protobuf_oneof:"change_type"`
	// contains filtered or unexported fields
}

RoleChange is used by Watch notifications Responses to describe change of single Role One of Added, Modified, Removed

func (*RoleChange) Descriptor

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

Deprecated, Use RoleChange.ProtoReflect.Descriptor instead.

func (*RoleChange) GetAdded

func (m *RoleChange) GetAdded() *RoleChange_Added

func (*RoleChange) GetChangeType

func (m *RoleChange) GetChangeType() isRoleChange_ChangeType

func (*RoleChange) GetCurrent

func (m *RoleChange) GetCurrent() *RoleChange_Current

func (*RoleChange) GetCurrentViewIndex

func (c *RoleChange) GetCurrentViewIndex() int32

func (*RoleChange) GetModified

func (m *RoleChange) GetModified() *RoleChange_Modified

func (*RoleChange) GetPreviousViewIndex

func (c *RoleChange) GetPreviousViewIndex() int32

func (*RoleChange) GetRawName

func (c *RoleChange) GetRawName() gotenresource.Name

func (*RoleChange) GetRemoved

func (m *RoleChange) GetRemoved() *RoleChange_Removed

func (*RoleChange) GetResource

func (c *RoleChange) GetResource() gotenresource.Resource

func (*RoleChange) GetRole

func (c *RoleChange) GetRole() *Role

func (*RoleChange) GetRoleName

func (c *RoleChange) GetRoleName() *Name

func (*RoleChange) GotenMessage

func (*RoleChange) GotenMessage()

func (*RoleChange) GotenValidate

func (obj *RoleChange) GotenValidate() error

func (*RoleChange) IsAdd

func (c *RoleChange) IsAdd() bool

func (*RoleChange) IsCurrent

func (c *RoleChange) IsCurrent() bool

func (*RoleChange) IsDelete

func (c *RoleChange) IsDelete() bool

func (*RoleChange) IsModify

func (c *RoleChange) IsModify() bool

func (*RoleChange) Marshal

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

func (*RoleChange) MarshalJSON

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

func (*RoleChange) ProtoMessage

func (*RoleChange) ProtoMessage()

func (*RoleChange) ProtoReflect

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

func (*RoleChange) Reset

func (m *RoleChange) Reset()

func (*RoleChange) SetAdded

func (m *RoleChange) SetAdded(fv *RoleChange_Added)

func (*RoleChange) SetAddedRaw

func (c *RoleChange) SetAddedRaw(snapshot gotenresource.Resource, idx int)

func (*RoleChange) SetChangeType

func (m *RoleChange) SetChangeType(ofv isRoleChange_ChangeType)

func (*RoleChange) SetCurrent

func (m *RoleChange) SetCurrent(fv *RoleChange_Current)

func (*RoleChange) SetCurrentRaw

func (c *RoleChange) SetCurrentRaw(snapshot gotenresource.Resource)

func (*RoleChange) SetDeletedRaw

func (c *RoleChange) SetDeletedRaw(name gotenresource.Name, idx int)

func (*RoleChange) SetModified

func (m *RoleChange) SetModified(fv *RoleChange_Modified)

func (*RoleChange) SetModifiedRaw

func (c *RoleChange) SetModifiedRaw(name gotenresource.Name, snapshot gotenresource.Resource, prevIdx int, newIdx int)

func (*RoleChange) SetRemoved

func (m *RoleChange) SetRemoved(fv *RoleChange_Removed)

func (*RoleChange) String

func (m *RoleChange) String() string

func (*RoleChange) Unmarshal

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

func (*RoleChange) UnmarshalJSON

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

type RoleChangeList

type RoleChangeList []*RoleChange

func (RoleChangeList) At

func (RoleChangeList) Length

func (l RoleChangeList) Length() int

func (RoleChangeList) Set

func (l RoleChangeList) Set(idx int, change gotenresource.ResourceChange)

func (RoleChangeList) Slice

func (l RoleChangeList) Slice(first, second int) gotenresource.ResourceChangeList

type RoleChangeMap

type RoleChangeMap map[Name]*RoleChange

func (RoleChangeMap) Delete

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

func (RoleChangeMap) ForEach

func (RoleChangeMap) Get

func (RoleChangeMap) Length

func (m RoleChangeMap) Length() int

func (RoleChangeMap) Set

type RoleChange_Added

type RoleChange_Added struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty" firestore:"role"`
	// Integer describing index of added Role in resulting query view.
	ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty" firestore:"viewIndex"`
	// contains filtered or unexported fields
}

Role has been added to query view

func (*RoleChange_Added) Descriptor

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

Deprecated, Use RoleChange_Added.ProtoReflect.Descriptor instead.

func (*RoleChange_Added) GetRole

func (m *RoleChange_Added) GetRole() *Role

func (*RoleChange_Added) GetViewIndex

func (m *RoleChange_Added) GetViewIndex() int32

func (*RoleChange_Added) GotenMessage

func (*RoleChange_Added) GotenMessage()

func (*RoleChange_Added) GotenValidate

func (obj *RoleChange_Added) GotenValidate() error

func (*RoleChange_Added) Marshal

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

func (*RoleChange_Added) MarshalJSON

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

func (*RoleChange_Added) ProtoMessage

func (*RoleChange_Added) ProtoMessage()

func (*RoleChange_Added) ProtoReflect

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

func (*RoleChange_Added) Reset

func (m *RoleChange_Added) Reset()

func (*RoleChange_Added) SetRole

func (m *RoleChange_Added) SetRole(fv *Role)

func (*RoleChange_Added) SetViewIndex

func (m *RoleChange_Added) SetViewIndex(fv int32)

func (*RoleChange_Added) String

func (m *RoleChange_Added) String() string

func (*RoleChange_Added) Unmarshal

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

func (*RoleChange_Added) UnmarshalJSON

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

type RoleChange_Added_

type RoleChange_Added_ struct {
	// Added is returned when watched document is added, either created or
	// enters Query view
	Added *RoleChange_Added `protobuf:"bytes,1,opt,name=added,proto3,oneof" firestore:"added"`
}

type RoleChange_Current

type RoleChange_Current struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty" firestore:"role"`
	// contains filtered or unexported fields
}

Role has been added or modified in a query view. Version used for stateless watching

func (*RoleChange_Current) Descriptor

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

Deprecated, Use RoleChange_Current.ProtoReflect.Descriptor instead.

func (*RoleChange_Current) GetRole

func (m *RoleChange_Current) GetRole() *Role

func (*RoleChange_Current) GotenMessage

func (*RoleChange_Current) GotenMessage()

func (*RoleChange_Current) GotenValidate

func (obj *RoleChange_Current) GotenValidate() error

func (*RoleChange_Current) Marshal

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

func (*RoleChange_Current) MarshalJSON

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

func (*RoleChange_Current) ProtoMessage

func (*RoleChange_Current) ProtoMessage()

func (*RoleChange_Current) ProtoReflect

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

func (*RoleChange_Current) Reset

func (m *RoleChange_Current) Reset()

func (*RoleChange_Current) SetRole

func (m *RoleChange_Current) SetRole(fv *Role)

func (*RoleChange_Current) String

func (m *RoleChange_Current) String() string

func (*RoleChange_Current) Unmarshal

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

func (*RoleChange_Current) UnmarshalJSON

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

type RoleChange_Current_

type RoleChange_Current_ struct {
	// Current is returned in stateless watch when document enters query view or
	// is modified within.
	Current *RoleChange_Current `protobuf:"bytes,4,opt,name=current,proto3,oneof" firestore:"current"`
}

type RoleChange_Modified

type RoleChange_Modified struct {

	// Name of modified Role
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// New version of Role or masked difference, depending on mask_changes
	// instrumentation of issued [WatchRoleRequest] or [WatchRolesRequest]
	Role *Role `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty" firestore:"role"`
	// Used when mask_changes is set, contains field paths of modified
	// properties.
	FieldMask *Role_FieldMask `` /* 136-byte string literal not displayed */
	// Previous view index specifies previous position of modified Role.
	// When modification doesn't affect sorted order, value will remain
	// identical to [view_index].
	PreviousViewIndex int32 `` /* 145-byte string literal not displayed */
	// Integer specifying Role new index in resulting query view.
	ViewIndex int32 `protobuf:"varint,5,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty" firestore:"viewIndex"`
	// contains filtered or unexported fields
}

Role changed some of it's fields - contains either full document or masked change

func (*RoleChange_Modified) Descriptor

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

Deprecated, Use RoleChange_Modified.ProtoReflect.Descriptor instead.

func (*RoleChange_Modified) GetFieldMask

func (m *RoleChange_Modified) GetFieldMask() *Role_FieldMask

func (*RoleChange_Modified) GetName

func (m *RoleChange_Modified) GetName() *Name

func (*RoleChange_Modified) GetPreviousViewIndex

func (m *RoleChange_Modified) GetPreviousViewIndex() int32

func (*RoleChange_Modified) GetRole

func (m *RoleChange_Modified) GetRole() *Role

func (*RoleChange_Modified) GetViewIndex

func (m *RoleChange_Modified) GetViewIndex() int32

func (*RoleChange_Modified) GotenMessage

func (*RoleChange_Modified) GotenMessage()

func (*RoleChange_Modified) GotenValidate

func (obj *RoleChange_Modified) GotenValidate() error

func (*RoleChange_Modified) Marshal

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

func (*RoleChange_Modified) MarshalJSON

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

func (*RoleChange_Modified) ProtoMessage

func (*RoleChange_Modified) ProtoMessage()

func (*RoleChange_Modified) ProtoReflect

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

func (*RoleChange_Modified) Reset

func (m *RoleChange_Modified) Reset()

func (*RoleChange_Modified) SetFieldMask

func (m *RoleChange_Modified) SetFieldMask(fv *Role_FieldMask)

func (*RoleChange_Modified) SetName

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

func (*RoleChange_Modified) SetPreviousViewIndex

func (m *RoleChange_Modified) SetPreviousViewIndex(fv int32)

func (*RoleChange_Modified) SetRole

func (m *RoleChange_Modified) SetRole(fv *Role)

func (*RoleChange_Modified) SetViewIndex

func (m *RoleChange_Modified) SetViewIndex(fv int32)

func (*RoleChange_Modified) String

func (m *RoleChange_Modified) String() string

func (*RoleChange_Modified) Unmarshal

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

func (*RoleChange_Modified) UnmarshalJSON

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

type RoleChange_Modified_

type RoleChange_Modified_ struct {
	// Modified is returned when watched document is modified
	Modified *RoleChange_Modified `protobuf:"bytes,2,opt,name=modified,proto3,oneof" firestore:"modified"`
}

type RoleChange_Removed

type RoleChange_Removed struct {
	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
	// Integer specifying removed Role index. Not populated in stateless watch
	// type.
	ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty" firestore:"viewIndex"`
	// contains filtered or unexported fields
}

Removed is returned when Role is deleted or leaves Query view

func (*RoleChange_Removed) Descriptor

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

Deprecated, Use RoleChange_Removed.ProtoReflect.Descriptor instead.

func (*RoleChange_Removed) GetName

func (m *RoleChange_Removed) GetName() *Name

func (*RoleChange_Removed) GetViewIndex

func (m *RoleChange_Removed) GetViewIndex() int32

func (*RoleChange_Removed) GotenMessage

func (*RoleChange_Removed) GotenMessage()

func (*RoleChange_Removed) GotenValidate

func (obj *RoleChange_Removed) GotenValidate() error

func (*RoleChange_Removed) Marshal

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

func (*RoleChange_Removed) MarshalJSON

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

func (*RoleChange_Removed) ProtoMessage

func (*RoleChange_Removed) ProtoMessage()

func (*RoleChange_Removed) ProtoReflect

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

func (*RoleChange_Removed) Reset

func (m *RoleChange_Removed) Reset()

func (*RoleChange_Removed) SetName

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

func (*RoleChange_Removed) SetViewIndex

func (m *RoleChange_Removed) SetViewIndex(fv int32)

func (*RoleChange_Removed) String

func (m *RoleChange_Removed) String() string

func (*RoleChange_Removed) Unmarshal

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

func (*RoleChange_Removed) UnmarshalJSON

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

type RoleChange_Removed_

type RoleChange_Removed_ struct {
	// Removed is returned when Role is deleted or leaves Query view
	Removed *RoleChange_Removed `protobuf:"bytes,3,opt,name=removed,proto3,oneof" firestore:"removed"`
}

type RoleFieldPathBuilder

type RoleFieldPathBuilder struct{}

func NewRoleFieldPathBuilder

func NewRoleFieldPathBuilder() RoleFieldPathBuilder

func (RoleFieldPathBuilder) DefaultConditionBinding

func (RoleFieldPathBuilder) DisplayName

func (RoleFieldPathBuilder) IncludedPermissions

func (RoleFieldPathBuilder) Name

type RoleList

type RoleList []*Role

func (RoleList) Append

func (RoleList) AppendList

func (RoleList) At

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

func (RoleList) Length

func (l RoleList) Length() int

func (RoleList) Set

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

func (RoleList) Slice

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

type RoleMap

type RoleMap map[Name]*Role

func (RoleMap) Delete

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

func (RoleMap) ForEach

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

func (RoleMap) Get

func (RoleMap) Length

func (m RoleMap) Length() int

func (RoleMap) Set

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

type RoleMapPathSelectorDefaultConditionBindingParameters

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

func (RoleMapPathSelectorDefaultConditionBindingParameters) FieldPath

func (RoleMapPathSelectorDefaultConditionBindingParameters) WithArrayOfValues

func (RoleMapPathSelectorDefaultConditionBindingParameters) WithValue

type RoleNameList

type RoleNameList []*Name

func (RoleNameList) Append

func (RoleNameList) AppendList

func (RoleNameList) At

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

func (RoleNameList) Length

func (l RoleNameList) Length() int

func (RoleNameList) Set

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

func (RoleNameList) Slice

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

type RolePathSelectorDefaultConditionBinding

type RolePathSelectorDefaultConditionBinding struct{}

func (RolePathSelectorDefaultConditionBinding) Condition

func (RolePathSelectorDefaultConditionBinding) FieldPath

func (RolePathSelectorDefaultConditionBinding) Parameters

func (RolePathSelectorDefaultConditionBinding) WithArrayOfValues

func (RolePathSelectorDefaultConditionBinding) WithSubArrayItemValue

func (RolePathSelectorDefaultConditionBinding) WithSubArrayOfValues

func (RolePathSelectorDefaultConditionBinding) WithSubPath

func (RolePathSelectorDefaultConditionBinding) WithSubValue

func (RolePathSelectorDefaultConditionBinding) WithValue

type RolePathSelectorDefaultConditionBindingCondition

type RolePathSelectorDefaultConditionBindingCondition struct{}

func (RolePathSelectorDefaultConditionBindingCondition) FieldPath

func (RolePathSelectorDefaultConditionBindingCondition) WithArrayOfValues

func (RolePathSelectorDefaultConditionBindingCondition) WithValue

type RolePathSelectorDefaultConditionBindingParameters

type RolePathSelectorDefaultConditionBindingParameters struct{}

func (RolePathSelectorDefaultConditionBindingParameters) FieldPath

func (RolePathSelectorDefaultConditionBindingParameters) WithArrayOfValues

func (RolePathSelectorDefaultConditionBindingParameters) WithKey

func (RolePathSelectorDefaultConditionBindingParameters) WithValue

type RolePathSelectorDisplayName

type RolePathSelectorDisplayName struct{}

func (RolePathSelectorDisplayName) FieldPath

func (RolePathSelectorDisplayName) WithArrayOfValues

func (RolePathSelectorDisplayName) WithValue

type RolePathSelectorIncludedPermissions

type RolePathSelectorIncludedPermissions struct{}

func (RolePathSelectorIncludedPermissions) FieldPath

func (RolePathSelectorIncludedPermissions) WithArrayOfValues

func (RolePathSelectorIncludedPermissions) WithItemValue

func (RolePathSelectorIncludedPermissions) WithValue

type RolePathSelectorName

type RolePathSelectorName struct{}

func (RolePathSelectorName) FieldPath

func (RolePathSelectorName) WithArrayOfValues

func (s RolePathSelectorName) WithArrayOfValues(values []*Name) *Role_FieldTerminalPathArrayOfValues

func (RolePathSelectorName) WithValue

type RoleReferenceList

type RoleReferenceList []*Reference

func (RoleReferenceList) Append

func (RoleReferenceList) AppendList

func (RoleReferenceList) At

func (RoleReferenceList) Length

func (l RoleReferenceList) Length() int

func (RoleReferenceList) Set

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

func (RoleReferenceList) Slice

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

type Role_FieldMask

type Role_FieldMask struct {
	Paths []Role_FieldPath
}

func FullRole_FieldMask

func FullRole_FieldMask() *Role_FieldMask

func ResourceViewFieldMask

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

func (*Role_FieldMask) AppendPath

func (fieldMask *Role_FieldMask) AppendPath(path Role_FieldPath)

func (*Role_FieldMask) AppendRawPath

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

func (*Role_FieldMask) DecodeFirestore

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

func (*Role_FieldMask) EncodeFirestore

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

firestore encoding/decoding integration

func (*Role_FieldMask) FilterInputFields

func (fieldMask *Role_FieldMask) FilterInputFields() *Role_FieldMask

FilterInputFields generates copy of field paths with output_only field paths removed

func (*Role_FieldMask) FromProtoFieldMask

func (fieldMask *Role_FieldMask) FromProtoFieldMask(protoFieldMask *fieldmaskpb.FieldMask) error

func (*Role_FieldMask) GetPaths

func (fieldMask *Role_FieldMask) GetPaths() []Role_FieldPath

func (*Role_FieldMask) GetRawPaths

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

func (*Role_FieldMask) IsFull

func (fieldMask *Role_FieldMask) IsFull() bool

func (Role_FieldMask) Marshal

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

implement methods required by customType

func (Role_FieldMask) MarshalJSON

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

func (*Role_FieldMask) PathsCount

func (fieldMask *Role_FieldMask) PathsCount() int

func (*Role_FieldMask) Project

func (fieldMask *Role_FieldMask) Project(source *Role) *Role

func (*Role_FieldMask) ProjectRaw

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

func (*Role_FieldMask) ProtoMessage

func (fieldMask *Role_FieldMask) ProtoMessage()

func (*Role_FieldMask) ProtoReflect

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

func (*Role_FieldMask) Reset

func (fieldMask *Role_FieldMask) Reset()

func (*Role_FieldMask) Set

func (fieldMask *Role_FieldMask) Set(target, source *Role)

func (*Role_FieldMask) SetFromCliFlag

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

func (*Role_FieldMask) SetRaw

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

func (*Role_FieldMask) Size

func (fieldMask *Role_FieldMask) Size() int

func (*Role_FieldMask) String

func (fieldMask *Role_FieldMask) String() string

func (*Role_FieldMask) Subtract

func (fieldMask *Role_FieldMask) Subtract(other *Role_FieldMask) *Role_FieldMask

func (*Role_FieldMask) SubtractRaw

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

func (*Role_FieldMask) ToProtoFieldMask

func (fieldMask *Role_FieldMask) ToProtoFieldMask() *fieldmaskpb.FieldMask

ToFieldMask is used for proto conversions

func (*Role_FieldMask) Unmarshal

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

func (*Role_FieldMask) UnmarshalJSON

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

type Role_FieldPath

type Role_FieldPath interface {
	gotenobject.FieldPath
	Selector() Role_FieldPathSelector
	Get(source *Role) []interface{}
	GetSingle(source *Role) (interface{}, bool)
	ClearValue(item *Role)

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

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

func BuildRole_FieldPath

func BuildRole_FieldPath(fp gotenobject.RawFieldPath) (Role_FieldPath, error)

func MustParseRole_FieldPath

func MustParseRole_FieldPath(rawField string) Role_FieldPath

func ParseRole_FieldPath

func ParseRole_FieldPath(rawField string) (Role_FieldPath, error)

type Role_FieldPathArrayItemValue

type Role_FieldPathArrayItemValue interface {
	gotenobject.FieldPathArrayItemValue
	Role_FieldPath
	ContainsValue(*Role) bool
}

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

func MustParseRole_FieldPathArrayItemValue

func MustParseRole_FieldPathArrayItemValue(pathStr, valueStr string) Role_FieldPathArrayItemValue

func ParseRole_FieldPathArrayItemValue

func ParseRole_FieldPathArrayItemValue(pathStr, valueStr string) (Role_FieldPathArrayItemValue, error)

ParseRole_FieldPathArrayItemValue parses string and JSON-encoded value to its Value

type Role_FieldPathArrayOfValues

type Role_FieldPathArrayOfValues interface {
	gotenobject.FieldPathArrayOfValues
	Role_FieldPath
}

Role_FieldPathArrayOfValues allows storing slice of values for Role fields according to their type

func MustParseRole_FieldPathArrayOfValues

func MustParseRole_FieldPathArrayOfValues(pathStr, valuesStr string) Role_FieldPathArrayOfValues

func ParseRole_FieldPathArrayOfValues

func ParseRole_FieldPathArrayOfValues(pathStr, valuesStr string) (Role_FieldPathArrayOfValues, error)

type Role_FieldPathSelector

type Role_FieldPathSelector int32
const (
	Role_FieldPathSelectorName                    Role_FieldPathSelector = 0
	Role_FieldPathSelectorDisplayName             Role_FieldPathSelector = 1
	Role_FieldPathSelectorIncludedPermissions     Role_FieldPathSelector = 2
	Role_FieldPathSelectorDefaultConditionBinding Role_FieldPathSelector = 3
)

func (Role_FieldPathSelector) String

func (s Role_FieldPathSelector) String() string

type Role_FieldPathValue

type Role_FieldPathValue interface {
	Role_FieldPath
	gotenobject.FieldPathValue
	SetTo(target **Role)
	CompareWith(*Role) (cmp int, comparable bool)
}

Role_FieldPathValue allows storing values for Role fields according to their type

func MustParseRole_FieldPathValue

func MustParseRole_FieldPathValue(pathStr, valueStr string) Role_FieldPathValue

func ParseRole_FieldPathValue

func ParseRole_FieldPathValue(pathStr, valueStr string) (Role_FieldPathValue, error)

type Role_FieldSubPath

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

func (*Role_FieldSubPath) AsDefaultConditionBindingSubPath

func (fps *Role_FieldSubPath) AsDefaultConditionBindingSubPath() (condition.ConditionBinding_FieldPath, bool)

func (*Role_FieldSubPath) ClearValue

func (fps *Role_FieldSubPath) ClearValue(item *Role)

func (*Role_FieldSubPath) ClearValueRaw

func (fps *Role_FieldSubPath) ClearValueRaw(item proto.Message)

func (*Role_FieldSubPath) Get

func (fps *Role_FieldSubPath) Get(source *Role) (values []interface{})

Get returns all values pointed by selected field from source Role

func (*Role_FieldSubPath) GetDefault

func (fps *Role_FieldSubPath) GetDefault() interface{}

GetDefault returns a default value of the field type

func (*Role_FieldSubPath) GetRaw

func (fps *Role_FieldSubPath) GetRaw(source proto.Message) []interface{}

func (*Role_FieldSubPath) GetSingle

func (fps *Role_FieldSubPath) GetSingle(source *Role) (interface{}, bool)

GetSingle returns value of selected field from source Role

func (*Role_FieldSubPath) GetSingleRaw

func (fps *Role_FieldSubPath) GetSingleRaw(source proto.Message) (interface{}, bool)

func (*Role_FieldSubPath) IsLeaf

func (fps *Role_FieldSubPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Role_FieldSubPath) JSONString

func (fps *Role_FieldSubPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Role_FieldSubPath) Selector

func (fps *Role_FieldSubPath) Selector() Role_FieldPathSelector

func (*Role_FieldSubPath) String

func (fps *Role_FieldSubPath) String() string

String returns path representation in proto convention

func (*Role_FieldSubPath) WithIArrayItemValue

func (fps *Role_FieldSubPath) WithIArrayItemValue(value interface{}) Role_FieldPathArrayItemValue

func (*Role_FieldSubPath) WithIArrayOfValues

func (fps *Role_FieldSubPath) WithIArrayOfValues(values interface{}) Role_FieldPathArrayOfValues

func (*Role_FieldSubPath) WithIValue

func (fps *Role_FieldSubPath) WithIValue(value interface{}) Role_FieldPathValue

func (*Role_FieldSubPath) WithRawIArrayItemValue

func (fps *Role_FieldSubPath) WithRawIArrayItemValue(value interface{}) gotenobject.FieldPathArrayItemValue

func (*Role_FieldSubPath) WithRawIArrayOfValues

func (fps *Role_FieldSubPath) WithRawIArrayOfValues(values interface{}) gotenobject.FieldPathArrayOfValues

func (*Role_FieldSubPath) WithRawIValue

func (fps *Role_FieldSubPath) WithRawIValue(value interface{}) gotenobject.FieldPathValue

type Role_FieldSubPathArrayItemValue

type Role_FieldSubPathArrayItemValue struct {
	Role_FieldPath
	// contains filtered or unexported fields
}

func (*Role_FieldSubPathArrayItemValue) AsDefaultConditionBindingPathItemValue

func (fpaivs *Role_FieldSubPathArrayItemValue) AsDefaultConditionBindingPathItemValue() (condition.ConditionBinding_FieldPathArrayItemValue, bool)

func (*Role_FieldSubPathArrayItemValue) ContainsValue

func (fpaivs *Role_FieldSubPathArrayItemValue) ContainsValue(source *Role) bool

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

func (*Role_FieldSubPathArrayItemValue) GetRawItemValue

func (fpaivs *Role_FieldSubPathArrayItemValue) GetRawItemValue() interface{}

GetRawValue returns stored array item value

type Role_FieldSubPathArrayOfValues

type Role_FieldSubPathArrayOfValues struct {
	Role_FieldPath
	// contains filtered or unexported fields
}

func (*Role_FieldSubPathArrayOfValues) AsDefaultConditionBindingPathArrayOfValues

func (fpsaov *Role_FieldSubPathArrayOfValues) AsDefaultConditionBindingPathArrayOfValues() (condition.ConditionBinding_FieldPathArrayOfValues, bool)

func (*Role_FieldSubPathArrayOfValues) GetRawValues

func (fpsaov *Role_FieldSubPathArrayOfValues) GetRawValues() []interface{}

type Role_FieldSubPathValue

type Role_FieldSubPathValue struct {
	Role_FieldPath
	// contains filtered or unexported fields
}

func (*Role_FieldSubPathValue) AsDefaultConditionBindingPathValue

func (fpvs *Role_FieldSubPathValue) AsDefaultConditionBindingPathValue() (condition.ConditionBinding_FieldPathValue, bool)

func (*Role_FieldSubPathValue) CompareWith

func (fpvs *Role_FieldSubPathValue) CompareWith(source *Role) (int, bool)

func (*Role_FieldSubPathValue) CompareWithRaw

func (fpvs *Role_FieldSubPathValue) CompareWithRaw(source proto.Message) (int, bool)

func (*Role_FieldSubPathValue) GetRawValue

func (fpvs *Role_FieldSubPathValue) GetRawValue() interface{}

func (*Role_FieldSubPathValue) SetTo

func (fpvs *Role_FieldSubPathValue) SetTo(target **Role)

func (*Role_FieldSubPathValue) SetToRaw

func (fpvs *Role_FieldSubPathValue) SetToRaw(target proto.Message)

type Role_FieldTerminalPath

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

func (*Role_FieldTerminalPath) ClearValue

func (fp *Role_FieldTerminalPath) ClearValue(item *Role)

func (*Role_FieldTerminalPath) ClearValueRaw

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

func (*Role_FieldTerminalPath) Get

func (fp *Role_FieldTerminalPath) Get(source *Role) (values []interface{})

Get returns all values pointed by specific field from source Role

func (*Role_FieldTerminalPath) GetDefault

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

GetDefault returns a default value of the field type

func (*Role_FieldTerminalPath) GetRaw

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

func (*Role_FieldTerminalPath) GetSingle

func (fp *Role_FieldTerminalPath) GetSingle(source *Role) (interface{}, bool)

GetSingle returns value pointed by specific field of from source Role

func (*Role_FieldTerminalPath) GetSingleRaw

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

func (*Role_FieldTerminalPath) IsLeaf

func (fp *Role_FieldTerminalPath) IsLeaf() bool

IsLeaf - whether field path is holds simple value

func (*Role_FieldTerminalPath) JSONString

func (fp *Role_FieldTerminalPath) JSONString() string

JSONString returns path representation is JSON convention

func (*Role_FieldTerminalPath) Selector

func (*Role_FieldTerminalPath) String

func (fp *Role_FieldTerminalPath) String() string

String returns path representation in proto convention

func (*Role_FieldTerminalPath) WithIArrayItemValue

func (fp *Role_FieldTerminalPath) WithIArrayItemValue(value interface{}) Role_FieldPathArrayItemValue

func (*Role_FieldTerminalPath) WithIArrayOfValues

func (fp *Role_FieldTerminalPath) WithIArrayOfValues(values interface{}) Role_FieldPathArrayOfValues

func (*Role_FieldTerminalPath) WithIValue

func (fp *Role_FieldTerminalPath) WithIValue(value interface{}) Role_FieldPathValue

func (*Role_FieldTerminalPath) WithRawIArrayItemValue

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

func (*Role_FieldTerminalPath) WithRawIArrayOfValues

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

func (*Role_FieldTerminalPath) WithRawIValue

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

type Role_FieldTerminalPathArrayItemValue

type Role_FieldTerminalPathArrayItemValue struct {
	Role_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Role_FieldTerminalPathArrayItemValue) AsIncludedPermissionsItemValue

func (fpaiv *Role_FieldTerminalPathArrayItemValue) AsIncludedPermissionsItemValue() (*permission.Reference, bool)

func (*Role_FieldTerminalPathArrayItemValue) ContainsValue

func (fpaiv *Role_FieldTerminalPathArrayItemValue) ContainsValue(source *Role) bool

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

func (*Role_FieldTerminalPathArrayItemValue) GetRawItemValue

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

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

func (*Role_FieldTerminalPathArrayItemValue) GetSingle

func (fpaiv *Role_FieldTerminalPathArrayItemValue) GetSingle(source *Role) (interface{}, bool)

func (*Role_FieldTerminalPathArrayItemValue) GetSingleRaw

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

type Role_FieldTerminalPathArrayOfValues

type Role_FieldTerminalPathArrayOfValues struct {
	Role_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Role_FieldTerminalPathArrayOfValues) AsDefaultConditionBindingArrayOfValues

func (fpaov *Role_FieldTerminalPathArrayOfValues) AsDefaultConditionBindingArrayOfValues() ([]*condition.ConditionBinding, bool)

func (*Role_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues

func (fpaov *Role_FieldTerminalPathArrayOfValues) AsDisplayNameArrayOfValues() ([]string, bool)

func (*Role_FieldTerminalPathArrayOfValues) AsIncludedPermissionsArrayOfValues

func (fpaov *Role_FieldTerminalPathArrayOfValues) AsIncludedPermissionsArrayOfValues() ([][]*permission.Reference, bool)

func (*Role_FieldTerminalPathArrayOfValues) AsNameArrayOfValues

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

func (*Role_FieldTerminalPathArrayOfValues) GetRawValues

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

type Role_FieldTerminalPathValue

type Role_FieldTerminalPathValue struct {
	Role_FieldTerminalPath
	// contains filtered or unexported fields
}

func (*Role_FieldTerminalPathValue) AsDefaultConditionBindingValue

func (fpv *Role_FieldTerminalPathValue) AsDefaultConditionBindingValue() (*condition.ConditionBinding, bool)

func (*Role_FieldTerminalPathValue) AsDisplayNameValue

func (fpv *Role_FieldTerminalPathValue) AsDisplayNameValue() (string, bool)

func (*Role_FieldTerminalPathValue) AsIncludedPermissionsValue

func (fpv *Role_FieldTerminalPathValue) AsIncludedPermissionsValue() ([]*permission.Reference, bool)

func (*Role_FieldTerminalPathValue) AsNameValue

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

func (*Role_FieldTerminalPathValue) CompareWith

func (fpv *Role_FieldTerminalPathValue) CompareWith(source *Role) (int, bool)

CompareWith compares value in the 'Role_FieldTerminalPathValue' with the value under path in 'Role'.

func (*Role_FieldTerminalPathValue) CompareWithRaw

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

func (*Role_FieldTerminalPathValue) GetRawValue

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

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

func (*Role_FieldTerminalPathValue) SetTo

func (fpv *Role_FieldTerminalPathValue) SetTo(target **Role)

SetTo stores value for selected field for object Role

func (*Role_FieldTerminalPathValue) SetToRaw

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

type WatchQuery

type WatchQuery struct {
	ListQuery
	WatchType   watch_type.WatchType
	ChunkSize   int
	ResumeToken string
}

func (*WatchQuery) GetMaximumChunkSize

func (q *WatchQuery) GetMaximumChunkSize() int

func (*WatchQuery) GetResumeToken

func (q *WatchQuery) GetResumeToken() string

func (*WatchQuery) GetWatchType

func (q *WatchQuery) GetWatchType() watch_type.WatchType

func (*WatchQuery) SetMaximumChunkSize

func (q *WatchQuery) SetMaximumChunkSize(chunkSize int)

func (*WatchQuery) SetResumeToken

func (q *WatchQuery) SetResumeToken(token string)

func (*WatchQuery) SetWatchType

func (q *WatchQuery) SetWatchType(watchType watch_type.WatchType)

func (*WatchQuery) String added in v0.4.29

func (q *WatchQuery) String() string

Jump to

Keyboard shortcuts

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