nexus

package
v0.0.0-...-baa1f0e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 1 Imported by: 37

Documentation

Index

Constants

View Source
const (
	BaseGroupName string = "tanzu.tsm.vmware.com"
)

Variables

Default HTTP DELETE Response mappings.

View Source
var DefaultHTTPError = HTTPResponse{Description: http.StatusText(http.StatusNotImplemented)}

Default HTTP GET Response mappings.

Default HTTP methods and responses.

Default HTTP PUT Response mappings.

View Source
var HTTPListResponse = HTTPMethodsResponses{
	"LIST": DefaultHTTPGETResponses,
}

HTTP Response for List operation

Functions

This section is empty.

Types

type GraphQLQuery

type GraphQLQuery struct {
	Name            string               `json:"name,omitempty"`             // query identifier
	ServiceEndpoint GraphQLQueryEndpoint `json:"service_endpoint,omitempty"` // endpoint that serves this query
	Args            interface{}          `json:"args,omitempty"`             // custom graphql filters and arguments
	ApiType         GraphQlApiType       `json:"api_type,omitempty"`         // type of GRPC API endpoint
}

A GraphQLQuery specifies a custom query available via GraphQL API. Each GraphQLQuery is self contained unit of the exposed custom query.

type GraphQLQueryEndpoint

type GraphQLQueryEndpoint struct {
	Domain string `json:"domain"` // fully qualified domain name of the network endpoint
	Port   int    `json:"port"`   // service port
}

A GraphQLQueryEndpoint specifies the network endpoint that serves a GraphQL query.

type GraphQLQuerySpec

type GraphQLQuerySpec struct {
	Queries []GraphQLQuery `json:"queries"`
}

A GraphQLQuerySpec is a collection of GraphQLQuery. GraphQLQuerySpec provides a handle to represent and refer a collection of GraphQLQuery.

type GraphQLSpec

type GraphQLSpec struct {
	IdName     string
	IdNullable bool
}

A GraphQLSpec

type GraphQlApiType

type GraphQlApiType int
const (
	GraphQLQueryApi GraphQlApiType = iota
	GetMetricsApi
)

type HTTPCodesResponse

type HTTPCodesResponse map[ResponseCode]HTTPResponse

HTTPCodesResponse code to response type.

type HTTPMethod

type HTTPMethod string

HTTPMethod type.

type HTTPMethodsResponses

type HTTPMethodsResponses map[HTTPMethod]HTTPCodesResponse

HTTPMethodsResponses to response mapping.

type HTTPResponse

type HTTPResponse struct {
	Description string `json:"description"`
}

HTTPResponse type.

type ID

type ID struct {
	Id string `nexus.vmware:"id"`
}

type NexusGenericObject

type NexusGenericObject struct{}

NexusGenericObject type.

type Node

type Node struct {
	ID
}

type ResponseCode

type ResponseCode int

ResponseCode type.

const DefaultHTTPErrorCode ResponseCode = http.StatusNotImplemented

Default HTTP error code and description.

type RestAPISpec

type RestAPISpec struct {
	Uris []RestURIs `json:"uris"`
}

type RestURIs

type RestURIs struct {
	Uri         string               `json:"uri"`
	QueryParams []string             `json:"query_params,omitempty"`
	Methods     HTTPMethodsResponses `json:"methods"`
}

RestURIs and associated data.

type SecretSpec

type SecretSpec struct{}

type SingletonNode

type SingletonNode struct {
	ID
}

Jump to

Keyboard shortcuts

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