client

package
v0.0.0-...-a892768 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(ctx context.Context, url string) (*http.Response, error)
	Delete(ctx context.Context, url string, params map[string]string) (*http.Response, error)
	Post(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)
	Put(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)
	Patch(ctx context.Context, url string, body io.Reader) (*http.Response, error)
}

func NewSpClient

func NewSpClient(cfg config.CLIConfig) Client

type SpClient

type SpClient struct {
	// contains filtered or unexported fields
}

SpClient provides access to SP APIs.

func (*SpClient) Delete

func (c *SpClient) Delete(ctx context.Context, url string, params map[string]string) (*http.Response, error)

func (*SpClient) Get

func (c *SpClient) Get(ctx context.Context, url string) (*http.Response, error)

func (*SpClient) Patch

func (c *SpClient) Patch(ctx context.Context, url string, body io.Reader) (*http.Response, error)

func (*SpClient) Post

func (c *SpClient) Post(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)

func (*SpClient) Put

func (c *SpClient) Put(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)

Jump to

Keyboard shortcuts

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