exocci v0.1.0 OCCI.Model.Infrastructure View Source

Infrastructure OCCI model

Imported extensions:

  • Elixir.OCCI.Model.Core

Defined Kinds:

  • http://schemas.ogf.org/occi/infrastructure#compute
  • http://schemas.ogf.org/occi/infrastructure#network
  • http://schemas.ogf.org/occi/infrastructure#networkinterface
  • http://schemas.ogf.org/occi/infrastructure#storage
  • http://schemas.ogf.org/occi/infrastructure#storagelink

Defined Mixins:

  • http://schemas.ogf.org/occi/infrastructure#os_tpl
  • http://schemas.ogf.org/occi/infrastructure#resource_tpl
  • http://schemas.ogf.org/occi/infrastructure/compute#user_data
  • http://schemas.ogf.org/occi/infrastructure/credentials#ssh_key
  • http://schemas.ogf.org/occi/infrastructure/network#ipnetwork
  • http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface

Link to this section Summary

Functions

Given a list of categories, returns all action specifications

Add user mixin (tag)

Returns list of mixins applicable to a given kind

Delete user mixin (tag)

Return true if name is a valid kind module

Return true if name if a valid mixin module

Return list of available mixins

Return module associated with the given category

Given a list of categories, returns list of required attributes

Given a list of categories, returns all attributes specs

Link to this section Functions

Given a list of categories, returns all action specifications

Link to this function add_mixin(module, category) View Source
add_mixin(module :: atom, category :: charlist | String.t | atom) :: atom

Add user mixin (tag)

  • module: module name, related to model name
  • category: category name

Returns list of mixins applicable to a given kind

Link to this function del_mixin(module) View Source
del_mixin(module :: atom) :: :ok | :error

Delete user mixin (tag)

Link to this function kind?(mod) View Source
kind?(atom) :: boolean

Return true if name is a valid kind module

Link to this function mixin?(mod) View Source
mixin?(atom) :: boolean

Return true if name if a valid mixin module

Link to this function mixins() View Source
mixins() :: [atom]

Return list of available mixins

Link to this function module(name) View Source
module(charlist | String.t | atom) :: atom

Return module associated with the given category

Given a list of categories, returns list of required attributes

Given a list of categories, returns all attributes specs