Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OperationTypeKubernetesOpenAPIV2Doc is the operation type for the required OpenAPI v2 discovery document. // // This is required by the Kubernetes API Server. OperationTypeKubernetesOpenAPIV2Doc = "KUBERNETESOPENAPIV2DOC" // OperationTypeKubernetesOpenAPIV3Doc is the operation type for the required OpenAPI v3 discovery document. // // This is required by the Kubernetes API Server. OperationTypeKubernetesOpenAPIV3Doc = "KUBERNETESOPENAPIV3DOC" // OperationTypeKubernetesDiscoveryDoc is the operation type for the required Kubernetes API discovery document. OperationTypeKubernetesDiscoveryDoc = "KUBERNETESDISCOVERYDOC" // OperationTypePlanes is the operation type for the planes (all types) collection. OperationTypePlanes = "PLANES" )
Variables ¶
This section is empty.
Functions ¶
func DefaultModules ¶
func DefaultModules(options *ucp.Options) []modules.Initializer
DefaultModules returns a list of default modules that will be registered with the router.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the hosting.Service interface for the UCP frontend API.
func NewService ¶
NewService creates a server to serve UCP API requests.
func (*Service) Initialize ¶
Initialize sets up the router, database provider, secret provider, status manager, AWS config, AWS clients, registers the routes, configures the default planes, and sets up the http server with the appropriate middleware. It returns an http server and an error if one occurs.
Click to show internal directories.
Click to hide internal directories.