test

package
v0.0.0-...-7650221 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id   string
	Name string
}

type Application

type Application struct {
	Id           string
	Name         string
	Bcap         string
	Aliases      []string
	Certificates map[EnvironmentName]string
}

type ApplicationController

type ApplicationController struct {
	Resources []Application
}

TestApplicationController mimics the ApplicationController found in Galapagos Java.

func (*ApplicationController) Create

func (*ApplicationController) Delete

func (*ApplicationController) Get

func (*ApplicationController) GetCertificates

func (c *ApplicationController) GetCertificates(ctx context.Context, w http.ResponseWriter, r *http.Request)

func (*ApplicationController) Head

type EnvironmentName

type EnvironmentName string

type TestServer

type TestServer struct {
	URL string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context) *TestServer

func (*TestServer) Accounts

func (s *TestServer) Accounts() []Account

func (*TestServer) Applications

func (s *TestServer) Applications() []Application

func (*TestServer) Client

func (s *TestServer) Client() *http.Client

func (*TestServer) Close

func (s *TestServer) Close() error

func (*TestServer) Topics

func (s *TestServer) Topics() []Topic

type Topic

type Topic struct {
}

type TopicController

type TopicController struct {
	Resources []Topic
}

TopicController mimics the TopicController found in Galapagos Java.

func (*TopicController) Create

func (*TopicController) Delete

func (*TopicController) GetConfig

Jump to

Keyboard shortcuts

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