director

package
v0.0.0-...-34ee2f8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationHeader = "Authorization"
	TenantHeader        = "Tenant"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRuntimeResponse

type CreateRuntimeResponse struct {
	Result *graphql.Runtime `json:"result"`
}

type DeleteRuntimeResponse

type DeleteRuntimeResponse struct {
	Result *graphql.Runtime `json:"result"`
}

type DirectorClient

type DirectorClient interface {
	CreateRuntime(config *gqlschema.RuntimeInput, tenant string) (string, apperrors.AppError)
	GetRuntime(id, tenant string) (graphql.RuntimeExt, apperrors.AppError)
	UpdateRuntime(id string, config *graphql.RuntimeInput, tenant string) apperrors.AppError
	DeleteRuntime(id, tenant string) apperrors.AppError
	SetRuntimeStatusCondition(id string, statusCondition graphql.RuntimeStatusCondition, tenant string) apperrors.AppError
	GetConnectionToken(id, tenant string) (graphql.OneTimeTokenForRuntimeExt, apperrors.AppError)
	RuntimeExists(gardenerClusterName, tenant string) (bool, apperrors.AppError)
}

func NewDirectorClient

func NewDirectorClient(gqlClient gql.Client, oauthClient oauth.Client) DirectorClient

type GetRuntimeResponse

type GetRuntimeResponse struct {
	Result *graphql.RuntimeExt `json:"result"`
}

type GetRuntimesResponse

type GetRuntimesResponse struct {
	Result *graphql.RuntimePage `json:"result"`
}

type OneTimeTokenResponse

type OneTimeTokenResponse struct {
	Result *graphql.OneTimeTokenForRuntimeExt `json:"result"`
}

type RuntimeInput

type RuntimeInput struct {
	Name        string          `json:"name"`
	Description *string         `json:"description"`
	Labels      *graphql.Labels `json:"labels"`
}

type UpdateRuntimeResponse

type UpdateRuntimeResponse struct {
	Result *graphql.Runtime `json:"result"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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