service

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOSOSubscriptionService

NewOSOSubscriptionService returns a new OSOSubscriptionService implementation

Types

type OSOSubscriptionServiceConfiguration

type OSOSubscriptionServiceConfiguration interface {
	// manager.TokenManagerConfiguration
	GetOSORegistrationAppURL() string
	GetOSORegistrationAppAdminUsername() string
	GetOSORegistrationAppAdminToken() string
}

OSOSubscriptionServiceConfiguration the OSOSubscriptionService implementation configuration

type Plan

type Plan struct {
	Service Service `json:"service"`
}

type Service

type Service struct {
	APIURL string `json:"api_url"`
}

type Subscription

type Subscription struct {
	Status string `json:"status"`
	Plan   Plan   `json:"plan"`
}

type SubscriptionLoader

type SubscriptionLoader interface {
	LoadSubscriptions(ctx context.Context, username string) (*Subscriptions, error)
}

type Subscriptions

type Subscriptions struct {
	Subscriptions []Subscription `json:"subscriptions"`
}

Jump to

Keyboard shortcuts

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