GithubHelp home page GithubHelp logo

ipso's Introduction

IPSO registry

License Godoc ReportCard

What is IPSO: https://omaspecworks.org/develop-with-oma-specworks/ipso-smart-objects/


Functionality

  • Import registry from OMA API
  • Export registry to YAML-file
  • Import registry from file
  • Compare two registries
  • Find objects and resources by ID and version
  • Find resources by object ID and resource ID
  • Find resources by OIR string i.e. "3303/0/5700"
  • Sanitize objects and resources text fields

Usage examples

Initialize a registry from OMA API:

reg, err := registry.New(ipso.DefaultConfiguration())

Export initialized registry to YAML file:

err := reg.Export("registry.yaml")

Import a previously exported registry from YAML file:

err := reg.Import("registry.yaml")

Create a registry with custom configuration:

cfg := ipso.Configuration{
    InitOnNew:      false,
    SkipInitErrors: false,
    Sanitize: false,
}

reg, err := ipso.New(cfg)

Compare two registries:

comp := reg1.Compare(reg2.GetRegistry())

Remove unwanted strings from objects and resources description:

reg.Sanitize(ipso.DefaultSanitizer())

Linter

go get github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --enable-all

License

MIT

ipso's People

Contributors

aliakseiz avatar

Stargazers

 avatar

Watchers

 avatar

ipso's Issues

Initialize a registry from URL

Would be nice to import already initialized registry from any URL pointing at YAML file.
Import from current GitHub repository by default.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.