client

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	URL           string `yaml:"url,omitempty"`
	CACertificate string `yaml:"ca_certificate,omitempty"`
	ClientID      string `yaml:"client_id"`
	ClientSecret  string `yaml:"client_secret"`
	RefreshToken  string `yaml:"refresh_token,omitempty"`
}

type Service

type Service struct {
	svc.ServiceType
	// contains filtered or unexported fields
}

func NewService

func NewService(name string, runtime client.Runtime, serviceManager service.Manager, uaaClientFactory helper.ClientFactory) *Service

func (Service) AuthLogin

func (s Service) AuthLogin(_ context.Context) error

func (Service) AuthLogout

func (s Service) AuthLogout(_ context.Context) error

func (Service) AuthRequest

func (s Service) AuthRequest(req *http.Request) error

func (Service) Name

func (s Service) Name() string

type ServiceFactory

type ServiceFactory struct {
	svc.ServiceType
	// contains filtered or unexported fields
}

func NewServiceFactory

func NewServiceFactory(runtime client.Runtime, serviceManager service.Manager, uaaClientFactory helper.ClientFactory) ServiceFactory

func (ServiceFactory) New

func (sf ServiceFactory) New(name string) service.Service

Jump to

Keyboard shortcuts

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