runtime

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

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client allows to fetch runtime's config and execute the logic against it

func NewClient

func NewClient(config Config, tenantID, instanceID string, clientHttp http.Client, directorClient *director.Client, log logrus.FieldLogger) *Client

func (*Client) EnsureUAAInstanceRemoved

func (c *Client) EnsureUAAInstanceRemoved() error

func (*Client) FetchRuntimeConfig

func (c *Client) FetchRuntimeConfig() (*string, error)

type Config

type Config struct {
	ProvisionerURL string `default:"http://compass-provisioner.compass-system.svc.cluster.local:3000/graphql"`

	UUAInstanceName      string `default:"uaa-issuer"`
	UUAInstanceNamespace string `default:"kyma-system"`
}

type DashboardChecker

type DashboardChecker struct {
	// contains filtered or unexported fields
}

DashboardChecker contains logic allowing to check if Kyma instance is accessible

func NewDashboardChecker

func NewDashboardChecker(clientHttp http.Client, log logrus.FieldLogger) *DashboardChecker

func (*DashboardChecker) AssertRedirectedToUAA

func (c *DashboardChecker) AssertRedirectedToUAA(dashboardURL string) error

AssertRedirectedToUAA sends request to the dashboardURL and expects to be redirected to the logging page There are 2 possible locations where we can be redirected: `/auth/xsuaa` - if uua-issuer exist on the cluster `/auth/local` - if Kyma use a standard login page

Jump to

Keyboard shortcuts

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