api

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClientConfig

type APIClientConfig struct {
	ConsoleURL           string `json:"console_url"`
	Project              string `json:"project"`
	Username             string `json:"username"`
	Password             string `json:"password"`
	SkipCertVerification bool   `json:"skip_cert_verification"`
}

type Client

type Client struct {
	Config     APIClientConfig
	HTTPClient *http.Client
	JWT        string
}

A connection to Prisma Cloud Compute.

func APIClient

func APIClient(config APIClientConfig) (*Client, error)

Create Client and authenticate.

func (*Client) Authenticate added in v0.8.0

func (c *Client) Authenticate() (err error)

Authenticate with the Prisma Cloud Compute Console.

func (*Client) Initialize added in v0.8.0

func (c *Client) Initialize(filename string) error

func (*Client) Request

func (c *Client) Request(method, endpoint string, query, data, response interface{}) (err error)

Communicate with the Prisma Cloud Compute API.

type ErrResponse added in v0.8.0

type ErrResponse struct {
	Err string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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