client

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ApiURL string = "https://api.pingone.com/v1"
View Source
const EnvironmentPath string = "environments"
View Source
const TokenURL string = "https://auth.lumeris.io/as/token"

Variables

This section is empty.

Functions

func CreateForEnvironment

func CreateForEnvironment[V models.AllTheThings](c *Client, environmentId string, obj V, segments ...string) (*V, error)

func DeleteForEnvironment

func DeleteForEnvironment(c *Client, environmentId string, segments ...string) error

func Get

func Get[T models.AllTheThings](c *Client, segments ...string) (*T, error)

func GetAll

func GetAll[V models.AllTheThings](c *Client, params map[string]string, segments ...string) (*models.GenericResponse[V], error)

func GetAllFromEnvironment

func GetAllFromEnvironment[V models.AllTheThings](c *Client, environmentId string, params map[string]string, segments ...string) (*models.GenericResponse[V], error)

func GetFromEnvironment

func GetFromEnvironment[V models.AllTheThings](c *Client, environmentId string, segments ...string) (*V, error)

func GetStringFromEnvironment

func GetStringFromEnvironment(c *Client, environmentId string, acceptHeader string, segments ...string) (*string, error)

GetStringFromEnvironment return non-json content as a text string.

func PutForEnvironment

func PutForEnvironment[V models.AllTheThings](c *Client, environmentId string, obj V, segments ...string) (*V, error)

Types

type Client

type Client struct {
	TokenURL    string
	ApiURL      string
	Context     context.Context
	AccessToken string
}

func NewClient

func NewClient(ctx context.Context, clientID, clientSecret, tokenURL, apiURL *string) (*Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL