GithubHelp home page GithubHelp logo

paybyphone / phpipam-sdk-go Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 34.0 69 KB

Partial SDK for the PHPIPAM API (https://phpipam.net/)

License: Other

Go 99.86% Makefile 0.14%
phpipam phpipam-sdk golang go

phpipam-sdk-go's Introduction

GoDoc

phpipam-sdk-go - Partial SDK for PHPIPAM

phpipam-sdk-go is a partial SDK for the PHPIPAM API.

This is a WIP and this README along with the rest of the code will develop until it reaches an acceptable level of maturity that it can be used with some CLI tools that we are developing to work with PHPIPAM, and possibly a Terraform provider to help insert data gathered from AWS and beyond.

Reference

See the GoDoc for the SDK usage details.

A Note on Custom Fields

The controllers in this SDK can access custom fields in one of two ways: using the embedded CustomFields map in each controller's data type, or using the Get and Update methods in each controller designed to work with custom fields. Which one you use depends on if you are using the Nested custom fields feature in PHPIPAM (requires 1.3 or higher). Nested custom fields require that you use the CustomFields map, non-nested require the use of the aforementioned functions.

Note that when you are using un-nested custom fields, you cannot use required fields - this is due to the fact that entries get added ahead of time without custom fields as there is no easy way to predict the shape of the data necessary to send to PHPIPAM in the initial creation request. If you require required fields, enable the nested functionality - otherwise, ensure that your fields are not required and choose sane defaults if it's absolutely necessary for data to be present.

License

Copyright 2017 PayByPhone Technologies, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

phpipam-sdk-go's People

Contributors

vancluever avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

phpipam-sdk-go's Issues

Please provide example usage

How does one get started with this package without reading the code? A sample snippet to get an object that one could make calls on would be useful.

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.