accesstoken

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticator

func Authenticator(accessToken string, options ...AuthenticatorOption) (authentication.Authenticator, error)

Authenticator implements the authentication.Authenticator interface using a Sysdig Access Key. See: https://cloud.ibm.com/docs/monitoring?topic=monitoring-api_monitoring_token for IBM Cloud See: https://sysdig.gitbooks.io/sysdig-cloud-api/content/rest_api/getting_started.html for Sysdig Cloud.

Types

type AuthenticatorOption

type AuthenticatorOption func(*authenticator) error

AuthenticatorOption defines the type for passing options to the Authenticator constructor.

func WithIBMInstanceID

func WithIBMInstanceID(ibmInstanceID string) AuthenticatorOption

WithIBMInstanceID sets the instance ID to be set for IBM Sysdig requests. See: https://cloud.ibm.com/docs/monitoring?topic=monitoring-mon-curl#mon-curl-headers-iam

func WithSysdigTeamID

func WithSysdigTeamID(sysdigTeamID string) AuthenticatorOption

WithSysdigTeamID sets the TeamID to be set for IBM Sysdig requests. May not be required. TODO: check if this is still required. See: https://cloud.ibm.com/docs/monitoring?topic=monitoring-team_id

Jump to

Keyboard shortcuts

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