serviceclient

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MPL-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(d resourceData, opts ...CreateOpt) (common.TokenChannelInterface, error)

NewHandler creates a new handler and returns the common.TokenChannelInterface interface Param resourceData can be *schema.ResourceData or any model which implements resourceData

Types

type CreateOpt

type CreateOpt func(h *Handler)

CreateOpt - function option definition

func WithIdentityAPI

func WithIdentityAPI(i IdentityAPI) CreateOpt

WithIdentityAPI override the IdentityAPI in Handler

type Handler

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

Handler the handler for service-client creds

func (*Handler) TokenChannels

func (h *Handler) TokenChannels() (chan common.Result, chan int)

TokenChannels return channels for token retrieve function

type IdentityAPI added in v0.0.4

type IdentityAPI interface {
	GenerateToken(context.Context, string, string, string, string) (string, error)
}

Jump to

Keyboard shortcuts

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