mappers

package
v0.0.0-...-bff9524 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationToEntity

func ConfigurationToEntity(c models.Configuration) entity.Configuration

func DeviceEntityToModel

func DeviceEntityToModel(device entity.Device) models.Device

func DeviceToEntity

func DeviceToEntity(joins []models.DeviceJoin, readFn manifest.ManifestReader) (entity.Device, error)

func DevicesToEntity

func DevicesToEntity(joins []models.DeviceJoin, readFn manifest.ManifestReader) ([]entity.Device, error)

func ManifestEntityToModel

func ManifestEntityToModel(e entity.Manifest) models.Manifest

func ManifestToEntity

func ManifestToEntity(mm []models.ManifestJoin, readFn manifest.ManifestReader) (entity.Manifest, error)

func ManifestsToEntities

func ManifestsToEntities(mm []models.ManifestJoin, readFn manifest.ManifestReader) ([]entity.Manifest, error)

func NamespaceModelToEntity

func NamespaceModelToEntity(n []models.NamespaceJoin, readFn manifest.ManifestReader) (entity.Namespace, error)

func NamespaceToModel

func NamespaceToModel(namespace entity.Namespace) models.Namespace

func NamespacesModelToEntity

func NamespacesModelToEntity(namespaces []models.NamespaceJoin, reader manifest.ManifestReader) ([]entity.Namespace, error)

func RepoEntityToModel

func RepoEntityToModel(r entity.Repository) models.Repo

func RepoModelToEntity

func RepoModelToEntity(m models.Repo) entity.Repository

func SetToEntity

func SetToEntity(s []models.SetJoin, readFn manifest.ManifestReader) (entity.Set, error)

func SetToModel

func SetToModel(set entity.Set) models.DeviceSet

func SetsToEntity

func SetsToEntity(sets []models.SetJoin, readFn manifest.ManifestReader) ([]entity.Set, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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