director

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(operationEndpoint string, cfg *graphqlbroker.Config, httpClient *http.Client) (*client, error)

NewClient constructs a default implementation of the Client interface

Types

type Config

type Config struct {
	OperationEndpoint string `mapstructure:"operation_endpoint" description:"the operation endpoint of the Director component"`
}

Settings type to be loaded from the environment

func DefaultConfig

func DefaultConfig() *Config

DefaultSettings returns the default values for configuring the System Broker

func (*Config) Validate

func (c *Config) Validate() error

Validate ensures that the director config properties have valid values

type Request

type Request struct {
	OperationType     graphql.OperationType `json:"operation_type"`
	ResourceType      resource.Type         `json:"resource_type"`
	ResourceID        string                `json:"resource_id"`
	OperationCategory string                `json:"operation_category"`
	Error             string                `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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