service

package
v1.24.0-basal-automated.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: BSD-3-Clause Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.External
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *client.ExternalConfig, name string, logger log.Logger, authStore authStore.Store, providerFactory provider.Factory) (*Client, error)

func (*Client) CreateUserProviderSession

func (c *Client) CreateUserProviderSession(ctx context.Context, userID string, create *auth.ProviderSessionCreate) (*auth.ProviderSession, error)

func (*Client) CreateUserRestrictedToken

func (c *Client) CreateUserRestrictedToken(ctx context.Context, userID string, create *auth.RestrictedTokenCreate) (*auth.RestrictedToken, error)

func (*Client) DeleteProviderSession

func (c *Client) DeleteProviderSession(ctx context.Context, id string) error

func (*Client) DeleteRestrictedToken

func (c *Client) DeleteRestrictedToken(ctx context.Context, id string) error

func (*Client) GetProviderSession

func (c *Client) GetProviderSession(ctx context.Context, id string) (*auth.ProviderSession, error)

func (*Client) GetRestrictedToken

func (c *Client) GetRestrictedToken(ctx context.Context, id string) (*auth.RestrictedToken, error)

func (*Client) ListUserProviderSessions

func (c *Client) ListUserProviderSessions(ctx context.Context, userID string, filter *auth.ProviderSessionFilter, pagination *page.Pagination) (auth.ProviderSessions, error)

func (*Client) ListUserRestrictedTokens

func (c *Client) ListUserRestrictedTokens(ctx context.Context, userID string, filter *auth.RestrictedTokenFilter, pagination *page.Pagination) (auth.RestrictedTokens, error)

func (*Client) UpdateProviderSession

func (c *Client) UpdateProviderSession(ctx context.Context, id string, update *auth.ProviderSessionUpdate) (*auth.ProviderSession, error)

func (*Client) UpdateRestrictedToken

func (c *Client) UpdateRestrictedToken(ctx context.Context, id string, update *auth.RestrictedTokenUpdate) (*auth.RestrictedToken, error)

type Service

type Service struct {
	*serviceService.Service
	// contains filtered or unexported fields
}

func New

func New(prefix string) (*Service, error)

func (*Service) AuthStore

func (s *Service) AuthStore() store.Store

func (*Service) DataClient

func (s *Service) DataClient() dataClient.Client

func (*Service) Domain

func (s *Service) Domain() string

func (*Service) Initialize

func (s *Service) Initialize() error

func (*Service) ProviderFactory

func (s *Service) ProviderFactory() provider.Factory

func (*Service) Status

func (s *Service) Status() *service.Status

func (*Service) TaskClient

func (s *Service) TaskClient() task.Client

func (*Service) Terminate

func (s *Service) Terminate()

Jump to

Keyboard shortcuts

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