From 2c526af1e5286c99225387981d3105cd179c9b4b Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Fri, 13 Jan 2023 15:21:27 +0530 Subject: [PATCH 1/4] Updates README file in configuration --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f226800..8bc331c0 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,16 @@ This library is compatible with Go 1.2+ Host: "", Version: "", Port: "PORT", - Username: "username", - Password: "password", } + + authConfig := ibclient.AuthConfig{ + Username: "username", + Password: "password", + } transportConfig := ibclient.NewTransportConfig("false", 20, 10) requestBuilder := &ibclient.WapiRequestBuilder{} requestor := &ibclient.WapiHttpRequestor{} - conn, err := ibclient.NewConnector(hostConfig, transportConfig, requestBuilder, requestor) + conn, err := ibclient.NewConnector(hostConfig, authConfig,transportConfig, requestBuilder, requestor) if err != nil { fmt.Println(err) } From 2e45fcd61636a2da8434ae32b23e85bfff63f276 Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Mon, 16 Jan 2023 10:50:12 +0530 Subject: [PATCH 2/4] Updated syntax issues in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8bc331c0..a76950b5 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,13 @@ This library is compatible with Go 1.2+ } authConfig := ibclient.AuthConfig{ - Username: "username", + Username: "username", Password: "password", } transportConfig := ibclient.NewTransportConfig("false", 20, 10) requestBuilder := &ibclient.WapiRequestBuilder{} requestor := &ibclient.WapiHttpRequestor{} - conn, err := ibclient.NewConnector(hostConfig, authConfig,transportConfig, requestBuilder, requestor) + conn, err := ibclient.NewConnector(hostConfig, authConfig, transportConfig, requestBuilder, requestor) if err != nil { fmt.Println(err) } From 6af42a8ad2bf33bd4247c76ab2bd7fa4f4f8f05c Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Fri, 20 Jan 2023 10:22:59 +0530 Subject: [PATCH 3/4] Removed indentation issue in example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a76950b5..57d77503 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ This library is compatible with Go 1.2+ Port: "PORT", } - authConfig := ibclient.AuthConfig{ + authConfig := ibclient.AuthConfig{ Username: "username", Password: "password", - } + } transportConfig := ibclient.NewTransportConfig("false", 20, 10) requestBuilder := &ibclient.WapiRequestBuilder{} requestor := &ibclient.WapiHttpRequestor{} From e470891c02dad5687a33389f9332c030f651e78c Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Mon, 23 Jan 2023 09:47:42 +0530 Subject: [PATCH 4/4] Fixes Indentaion and Config Error in example --- README.md | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 57d77503..1909bea9 100644 --- a/README.md +++ b/README.md @@ -33,34 +33,35 @@ This library is compatible with Go 1.2+ The following is a very simple example for the client usage: package main + import ( - "fmt" - ibclient "github.com/infobloxopen/infoblox-go-client" + "fmt" + ibclient "github.com/infobloxopen/infoblox-go-client/v2" ) func main() { - hostConfig := ibclient.HostConfig{ - Host: "", - Version: "", - Port: "PORT", - } - - authConfig := ibclient.AuthConfig{ - Username: "username", - Password: "password", - } - transportConfig := ibclient.NewTransportConfig("false", 20, 10) - requestBuilder := &ibclient.WapiRequestBuilder{} - requestor := &ibclient.WapiHttpRequestor{} - conn, err := ibclient.NewConnector(hostConfig, authConfig, transportConfig, requestBuilder, requestor) - if err != nil { - fmt.Println(err) - } - defer conn.Logout() - objMgr := ibclient.NewObjectManager(conn, "myclient", "") - //Fetches grid information - fmt.Println(objMgr.GetLicense()) - } + hostConfig := ibclient.HostConfig{ + Host: "", + Version: "", + Port: "PORT", + } + authConfig := ibclient.AuthConfig{ + Username: "username", + Password: "password", + } + transportConfig := ibclient.NewTransportConfig("false", 20, 10) + requestBuilder := &ibclient.WapiRequestBuilder{} + requestor := &ibclient.WapiHttpRequestor{} + conn, err := ibclient.NewConnector(hostConfig, authConfig, transportConfig, requestBuilder, requestor) + if err != nil { + fmt.Println(err) + } + defer conn.Logout() + objMgr := ibclient.NewObjectManager(conn, "myclient", "") + //Fetches grid information + fmt.Println(objMgr.GetGridLicense()) + } + ## Supported NIOS operations