accountmgmtutil

package
v0.37.1-beta3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTermsAccepted

func CheckTermsAccepted(ctx context.Context, spec ServiceTermsSpec, conn connection.Connection) (accepted bool, redirectURI string, err error)

Types

type ServiceTermsSpec

type ServiceTermsSpec struct {
	EventCode string `json:"EventCode"`
	SiteCode  string `json:"SiteCode"`
}

type TermsAndConditionsSpec

type TermsAndConditionsSpec struct {
	Kafka           ServiceTermsSpec `json:"kafka"`
	ServiceRegistry ServiceTermsSpec `json:"service-registry"`
}

func GetRemoteTermsSpec

func GetRemoteTermsSpec(context *context.Context, logger logging.Logger) TermsAndConditionsSpec

GetRemoteTermsSpec fetch event and site code information associated with the services Function is used to dynamically download new terms and conditions specifications without forcing end users to update their CLI.

Jump to

Keyboard shortcuts

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