util

package
v0.0.0-...-13bd798 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromNativeAction

func FromNativeAction(a eacl.Action) (*models.Action, error)

FromNativeAction converts eacl.Action to appropriate models.Action.

func FromNativeHeaderType

func FromNativeHeaderType(h eacl.FilterHeaderType) (*models.HeaderType, error)

FromNativeHeaderType converts eacl.FilterHeaderType to appropriate models.HeaderType.

func FromNativeMatchType

func FromNativeMatchType(t eacl.Match) (*models.MatchType, error)

FromNativeMatchType converts eacl.Match to appropriate models.MatchType.

func FromNativeOperation

func FromNativeOperation(o eacl.Operation) (*models.Operation, error)

FromNativeOperation converts eacl.Operation to appropriate models.Operation.

func FromNativeRecord

func FromNativeRecord(r eacl.Record) (*models.Record, error)

FromNativeRecord converts eacl.Record to appropriate models.Record.

func FromNativeRole

func FromNativeRole(r eacl.Role) (*models.Role, error)

FromNativeRole converts eacl.Role to appropriate models.Role.

func FromNativeTarget

func FromNativeTarget(t eacl.Target) (*models.Target, error)

FromNativeTarget converts eacl.Target to appropriate models.Target.

func NewBool

func NewBool(val bool) *bool

NewBool returns pointer to provided bool.

func NewErrorResponse

func NewErrorResponse(err error) *models.ErrorResponse

NewErrorResponse forms model.ErrorResponse.

func NewInteger

func NewInteger(val int64) *int64

NewInteger returns pointer to provided int.

func NewString

func NewString(val string) *string

NewString returns pointer to provided string.

func NewSuccessResponse

func NewSuccessResponse() *models.SuccessResponse

NewSuccessResponse forms model.SuccessResponse.

func ToNativeAction

func ToNativeAction(a *models.Action) (eacl.Action, error)

ToNativeAction converts models.Action to appropriate eacl.Action.

func ToNativeContainerToken

func ToNativeContainerToken(tokenRule *models.Rule) (session.Container, error)

ToNativeContainerToken converts models.Rule to appropriate session.Token.

func ToNativeFilters

func ToNativeFilters(fs *models.SearchFilters) (object.SearchFilters, error)

ToNativeFilters converts models.SearchFilters to object.SearchFilters.

func ToNativeHeaderType

func ToNativeHeaderType(h *models.HeaderType) (eacl.FilterHeaderType, error)

ToNativeHeaderType converts models.HeaderType to appropriate eacl.FilterHeaderType.

func ToNativeMatchFilter

func ToNativeMatchFilter(s *models.SearchMatch) (object.SearchMatchType, error)

ToNativeMatchFilter converts models.SearchMatch to object.SearchMatchType.

func ToNativeMatchType

func ToNativeMatchType(t *models.MatchType) (eacl.Match, error)

ToNativeMatchType converts models.MatchType to appropriate eacl.Match.

func ToNativeObjectToken

func ToNativeObjectToken(tokenRecords []*models.Record) (*bearer.Token, error)

ToNativeObjectToken converts []*models.Record to appropriate token.BearerToken.

func ToNativeOperation

func ToNativeOperation(o *models.Operation) (eacl.Operation, error)

ToNativeOperation converts models.Operation to appropriate eacl.Operation.

func ToNativeRecord

func ToNativeRecord(r *models.Record) (*eacl.Record, error)

ToNativeRecord converts models.Record to appropriate eacl.Record.

func ToNativeRole

func ToNativeRole(r *models.Role) (eacl.Role, error)

ToNativeRole converts models.Role to appropriate eacl.Role.

func ToNativeTable

func ToNativeTable(records []*models.Record) (*eacl.Table, error)

ToNativeTable converts records to eacl.Table.

func ToNativeTarget

func ToNativeTarget(t *models.Target) (*eacl.Target, error)

ToNativeTarget converts models.Target to appropriate eacl.Target.

func ToNativeVerb

func ToNativeVerb(r *models.Verb) (session.ContainerVerb, error)

ToNativeVerb converts models.Verb to appropriate session.ContainerSessionVerb.

Types

This section is empty.

Jump to

Keyboard shortcuts

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