contiv-experimental/contivmodel


DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel

License: Other

Language: HTML


GoDoc

Contiv Object Model

This is how current object model looks like:

Contiv Object Model

Using go client

Here is an example of how to use contiv go client

package main

import (
    "log"

    "github.com/contiv/contivModel/client"
)

func main() {
    cl, err := client.NewContivClient("localhost:9999")
    if err != nil {
        log.Fatal(err)
    }

    // Define a policy
    policy := client.Policy{
        TenantName: "tenant1",
        PolicyName: "policy",
    }

    // Create policy
    err = cl.PostPolicy(policy)
    if err != nil {
        log.Errorf("Policy Creation failed. Err: %v", err)
    }
}

Project Statistics

Sourcerank 1
Repository Size 2.39 MB
Stars 9
Forks 23
Watchers 26
Open issues 0
Dependencies 0
Contributors 7
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Sukhesh Halemane Abhinandan Prativadi Divya Vavili Joji Mekkatt Erik Hollensbe pkeerthana Vijay Krishnan

Packages Referencing this Repo

github.com/contiv/contivmodel/cmExample
DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel
Latest release - Published - 9 stars
github.com/contiv/contivmodel/systemtests
DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel
Latest release - Published - 9 stars
github.com/contiv/contivmodel/client
DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel
Latest release - Published - 9 stars
github.com/contiv/contivmodel
DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel
Latest release - Published - 9 stars
github.com/contiv-experimental/contivmodel/systemtests
DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel
Latest release - Published - 9 stars
github.com/contiv-experimental/contivmodel/client
DEPRECATED: Please see https://github.com/contiv/netplugin/tree/master/contivmodel
Latest release - Published - 9 stars

Something wrong with this page? Make a suggestion

Last synced: 2016-05-27 17:19:17 UTC

Login to resync this repository