director

package
v0.0.0-...-0e91422 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationResponse

type ApplicationResponse struct {
	Result schema.ApplicationExt `json:"result"`
}

type Client

type Client interface {
	CreateRuntime(in schema.RuntimeInput) (string, error)
	DeleteRuntime(runtimeID string) error
	SetRuntimeLabel(runtimeID, key, value string) error
	CreateApplication(in schema.ApplicationRegisterInput) (string, error)
	DeleteApplication(appID string) error
	SetApplicationLabel(applicationID, key, value string) error
	DeleteApplicationLabel(applicationID, key string) error
	SetDefaultEventing(runtimeID string, appID string, eventsBaseURL string) error
	GetOneTimeTokenUrl(appID string) (string, string, error)
}

func NewClient

func NewClient(directorURL, directorHealthzURL, tenant string, scopes []string) (Client, error)

type OneTimeTokenResponse

type OneTimeTokenResponse struct {
	Result schema.OneTimeTokenForApplication `json:"result"`
}

type RuntimeResponse

type RuntimeResponse struct {
	Result schema.Runtime `json:"result"`
}

type SetDefaultAppEventingResponse

type SetDefaultAppEventingResponse struct {
	Result schema.ApplicationEventingConfiguration `json:"result"`
}

type SetLabelResponse

type SetLabelResponse struct {
	Result schema.Label `json:"result"`
}

type TenantsResponse

type TenantsResponse struct {
	Result []*schema.Tenant
}

Jump to

Keyboard shortcuts

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