provider

package
v0.0.0-...-479d20a Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type ClientWrap

type ClientWrap struct {
	*stackrox.APIClient
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ClientWrap holds the API Client and a context initialized with the Bearer token for accessing the API.

func NewClientWrap

func NewClientWrap(endpoint, username, password string) ClientWrap

func (ClientWrap) BasicAuthContext

func (c ClientWrap) BasicAuthContext() context.Context

func (ClientWrap) FindGroups

func (c ClientWrap) FindGroups(ctx context.Context, authProviderId string) ([]stackrox.StorageGroup, *http.Response, error)

FindGroups is a local extension of the generated API, and it provides missing functionality that returns a slice of authentication groups filtered by the given authentication provider ID.

Jump to

Keyboard shortcuts

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