director

package
v0.0.0-...-6cc5b44 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TenantHeader = "Tenant"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ID           string                   `json:"id"`
	Name         string                   `json:"name"`
	ProviderName *string                  `json:"providerName"`
	Description  *string                  `json:"description"`
	Labels       map[string]interface{}   `json:"labels"`
	Auths        []*graphql.AppSystemAuth `json:"auths"`
	Bundles      *graphql.BundlePageExt   `json:"bundles"`
}

func (Application) ToApplication

func (app Application) ToApplication() kymamodel.Application

type ApplicationPage

type ApplicationPage struct {
	Data       []*Application    `json:"data"`
	PageInfo   *graphql.PageInfo `json:"pageInfo"`
	TotalCount int               `json:"totalCount"`
}

type ApplicationsAndLabelsForRuntimeResponse

type ApplicationsAndLabelsForRuntimeResponse struct {
	Runtime          *Runtime         `json:"runtime"`
	ApplicationsPage *ApplicationPage `json:"applicationsForRuntime"`
}

type DirectorClient

type DirectorClient interface {
	FetchConfiguration(ctx context.Context) ([]kymamodel.Application, graphql.Labels, error)
	SetURLsLabels(ctx context.Context, urlsCfg RuntimeURLsConfig, actualLabels graphql.Labels) (graphql.Labels, error)
}

func NewConfigurationClient

func NewConfigurationClient(gqlClient gql.Client, runtimeConfig config.RuntimeConfig) DirectorClient

type Runtime

type Runtime struct {
	Labels map[string]interface{} `json:"labels"`
}

type RuntimeURLsConfig

type RuntimeURLsConfig struct {
	EventsURL  string `envconfig:"default=https://gateway.kyma.local"`
	ConsoleURL string `envconfig:"default=https://console.kyma.local"`
}

type SetRuntimeLabelResponse

type SetRuntimeLabelResponse struct {
	Result *graphql.Label `json:"setRuntimeLabel"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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