operations

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 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 KickstartUIAPI

type KickstartUIAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// AwsApplyTKGConfigForAWSHandler sets the operation handler for the apply t k g config for a w s operation
	AwsApplyTKGConfigForAWSHandler aws.ApplyTKGConfigForAWSHandler
	// AzureApplyTKGConfigForAzureHandler sets the operation handler for the apply t k g config for azure operation
	AzureApplyTKGConfigForAzureHandler azure.ApplyTKGConfigForAzureHandler
	// DockerApplyTKGConfigForDockerHandler sets the operation handler for the apply t k g config for docker operation
	DockerApplyTKGConfigForDockerHandler docker.ApplyTKGConfigForDockerHandler
	// VsphereApplyTKGConfigForVsphereHandler sets the operation handler for the apply t k g config for vsphere operation
	VsphereApplyTKGConfigForVsphereHandler vsphere.ApplyTKGConfigForVsphereHandler
	// DockerCheckIfDockerDaemonAvailableHandler sets the operation handler for the check if docker daemon available operation
	DockerCheckIfDockerDaemonAvailableHandler docker.CheckIfDockerDaemonAvailableHandler
	// AwsCreateAWSRegionalClusterHandler sets the operation handler for the create a w s regional cluster operation
	AwsCreateAWSRegionalClusterHandler aws.CreateAWSRegionalClusterHandler
	// AzureCreateAzureRegionalClusterHandler sets the operation handler for the create azure regional cluster operation
	AzureCreateAzureRegionalClusterHandler azure.CreateAzureRegionalClusterHandler
	// AzureCreateAzureResourceGroupHandler sets the operation handler for the create azure resource group operation
	AzureCreateAzureResourceGroupHandler azure.CreateAzureResourceGroupHandler
	// AzureCreateAzureVirtualNetworkHandler sets the operation handler for the create azure virtual network operation
	AzureCreateAzureVirtualNetworkHandler azure.CreateAzureVirtualNetworkHandler
	// DockerCreateDockerRegionalClusterHandler sets the operation handler for the create docker regional cluster operation
	DockerCreateDockerRegionalClusterHandler docker.CreateDockerRegionalClusterHandler
	// VsphereCreateVSphereRegionalClusterHandler sets the operation handler for the create v sphere regional cluster operation
	VsphereCreateVSphereRegionalClusterHandler vsphere.CreateVSphereRegionalClusterHandler
	// AwsExportTKGConfigForAWSHandler sets the operation handler for the export t k g config for a w s operation
	AwsExportTKGConfigForAWSHandler aws.ExportTKGConfigForAWSHandler
	// AzureExportTKGConfigForAzureHandler sets the operation handler for the export t k g config for azure operation
	AzureExportTKGConfigForAzureHandler azure.ExportTKGConfigForAzureHandler
	// DockerExportTKGConfigForDockerHandler sets the operation handler for the export t k g config for docker operation
	DockerExportTKGConfigForDockerHandler docker.ExportTKGConfigForDockerHandler
	// VsphereExportTKGConfigForVsphereHandler sets the operation handler for the export t k g config for vsphere operation
	VsphereExportTKGConfigForVsphereHandler vsphere.ExportTKGConfigForVsphereHandler
	// AwsGetAWSAvailabilityZonesHandler sets the operation handler for the get a w s availability zones operation
	AwsGetAWSAvailabilityZonesHandler aws.GetAWSAvailabilityZonesHandler
	// AwsGetAWSCredentialProfilesHandler sets the operation handler for the get a w s credential profiles operation
	AwsGetAWSCredentialProfilesHandler aws.GetAWSCredentialProfilesHandler
	// AwsGetAWSNodeTypesHandler sets the operation handler for the get a w s node types operation
	AwsGetAWSNodeTypesHandler aws.GetAWSNodeTypesHandler
	// AwsGetAWSOSImagesHandler sets the operation handler for the get a w s o s images operation
	AwsGetAWSOSImagesHandler aws.GetAWSOSImagesHandler
	// AwsGetAWSRegionsHandler sets the operation handler for the get a w s regions operation
	AwsGetAWSRegionsHandler aws.GetAWSRegionsHandler
	// AwsGetAWSSubnetsHandler sets the operation handler for the get a w s subnets operation
	AwsGetAWSSubnetsHandler aws.GetAWSSubnetsHandler
	// AviGetAviCloudsHandler sets the operation handler for the get avi clouds operation
	AviGetAviCloudsHandler avi.GetAviCloudsHandler
	// AviGetAviServiceEngineGroupsHandler sets the operation handler for the get avi service engine groups operation
	AviGetAviServiceEngineGroupsHandler avi.GetAviServiceEngineGroupsHandler
	// AviGetAviVipNetworksHandler sets the operation handler for the get avi vip networks operation
	AviGetAviVipNetworksHandler avi.GetAviVipNetworksHandler
	// AzureGetAzureEndpointHandler sets the operation handler for the get azure endpoint operation
	AzureGetAzureEndpointHandler azure.GetAzureEndpointHandler
	// AzureGetAzureInstanceTypesHandler sets the operation handler for the get azure instance types operation
	AzureGetAzureInstanceTypesHandler azure.GetAzureInstanceTypesHandler
	// AzureGetAzureOSImagesHandler sets the operation handler for the get azure o s images operation
	AzureGetAzureOSImagesHandler azure.GetAzureOSImagesHandler
	// AzureGetAzureRegionsHandler sets the operation handler for the get azure regions operation
	AzureGetAzureRegionsHandler azure.GetAzureRegionsHandler
	// AzureGetAzureResourceGroupsHandler sets the operation handler for the get azure resource groups operation
	AzureGetAzureResourceGroupsHandler azure.GetAzureResourceGroupsHandler
	// AzureGetAzureVnetsHandler sets the operation handler for the get azure vnets operation
	AzureGetAzureVnetsHandler azure.GetAzureVnetsHandler
	// FeaturesGetFeatureFlagsHandler sets the operation handler for the get feature flags operation
	FeaturesGetFeatureFlagsHandler features.GetFeatureFlagsHandler
	// ProviderGetProviderHandler sets the operation handler for the get provider operation
	ProviderGetProviderHandler provider.GetProviderHandler
	// EditionGetTanzuEditionHandler sets the operation handler for the get tanzu edition operation
	EditionGetTanzuEditionHandler edition.GetTanzuEditionHandler
	// UIGetUIHandler sets the operation handler for the get UI operation
	UIGetUIHandler ui.GetUIHandler
	// UIGetUIFileHandler sets the operation handler for the get UI file operation
	UIGetUIFileHandler ui.GetUIFileHandler
	// AwsGetVPCsHandler sets the operation handler for the get v p cs operation
	AwsGetVPCsHandler aws.GetVPCsHandler
	// VsphereGetVSphereComputeResourcesHandler sets the operation handler for the get v sphere compute resources operation
	VsphereGetVSphereComputeResourcesHandler vsphere.GetVSphereComputeResourcesHandler
	// VsphereGetVSphereDatacentersHandler sets the operation handler for the get v sphere datacenters operation
	VsphereGetVSphereDatacentersHandler vsphere.GetVSphereDatacentersHandler
	// VsphereGetVSphereDatastoresHandler sets the operation handler for the get v sphere datastores operation
	VsphereGetVSphereDatastoresHandler vsphere.GetVSphereDatastoresHandler
	// VsphereGetVSphereFoldersHandler sets the operation handler for the get v sphere folders operation
	VsphereGetVSphereFoldersHandler vsphere.GetVSphereFoldersHandler
	// VsphereGetVSphereNetworksHandler sets the operation handler for the get v sphere networks operation
	VsphereGetVSphereNetworksHandler vsphere.GetVSphereNetworksHandler
	// VsphereGetVSphereNodeTypesHandler sets the operation handler for the get v sphere node types operation
	VsphereGetVSphereNodeTypesHandler vsphere.GetVSphereNodeTypesHandler
	// VsphereGetVSphereOSImagesHandler sets the operation handler for the get v sphere o s images operation
	VsphereGetVSphereOSImagesHandler vsphere.GetVSphereOSImagesHandler
	// VsphereGetVSphereResourcePoolsHandler sets the operation handler for the get v sphere resource pools operation
	VsphereGetVSphereResourcePoolsHandler vsphere.GetVSphereResourcePoolsHandler
	// VsphereGetVsphereThumbprintHandler sets the operation handler for the get vsphere thumbprint operation
	VsphereGetVsphereThumbprintHandler vsphere.GetVsphereThumbprintHandler
	// AwsImportTKGConfigForAWSHandler sets the operation handler for the import t k g config for a w s operation
	AwsImportTKGConfigForAWSHandler aws.ImportTKGConfigForAWSHandler
	// AzureImportTKGConfigForAzureHandler sets the operation handler for the import t k g config for azure operation
	AzureImportTKGConfigForAzureHandler azure.ImportTKGConfigForAzureHandler
	// DockerImportTKGConfigForDockerHandler sets the operation handler for the import t k g config for docker operation
	DockerImportTKGConfigForDockerHandler docker.ImportTKGConfigForDockerHandler
	// VsphereImportTKGConfigForVsphereHandler sets the operation handler for the import t k g config for vsphere operation
	VsphereImportTKGConfigForVsphereHandler vsphere.ImportTKGConfigForVsphereHandler
	// AwsSetAWSEndpointHandler sets the operation handler for the set a w s endpoint operation
	AwsSetAWSEndpointHandler aws.SetAWSEndpointHandler
	// AzureSetAzureEndpointHandler sets the operation handler for the set azure endpoint operation
	AzureSetAzureEndpointHandler azure.SetAzureEndpointHandler
	// VsphereSetVSphereEndpointHandler sets the operation handler for the set v sphere endpoint operation
	VsphereSetVSphereEndpointHandler vsphere.SetVSphereEndpointHandler
	// AviVerifyAccountHandler sets the operation handler for the verify account operation
	AviVerifyAccountHandler avi.VerifyAccountHandler
	// LdapVerifyLdapBindHandler sets the operation handler for the verify ldap bind operation
	LdapVerifyLdapBindHandler ldap.VerifyLdapBindHandler
	// LdapVerifyLdapCloseConnectionHandler sets the operation handler for the verify ldap close connection operation
	LdapVerifyLdapCloseConnectionHandler ldap.VerifyLdapCloseConnectionHandler
	// LdapVerifyLdapConnectHandler sets the operation handler for the verify ldap connect operation
	LdapVerifyLdapConnectHandler ldap.VerifyLdapConnectHandler
	// LdapVerifyLdapGroupSearchHandler sets the operation handler for the verify ldap group search operation
	LdapVerifyLdapGroupSearchHandler ldap.VerifyLdapGroupSearchHandler
	// LdapVerifyLdapUserSearchHandler sets the operation handler for the verify ldap user search operation
	LdapVerifyLdapUserSearchHandler ldap.VerifyLdapUserSearchHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

KickstartUIAPI Tanzu Kubernetes Grid Setup API.

func NewKickstartUIAPI

func NewKickstartUIAPI(spec *loads.Document) *KickstartUIAPI

NewKickstartUIAPI creates a new KickstartUI instance

func (*KickstartUIAPI) AuthenticatorsFor

func (o *KickstartUIAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*KickstartUIAPI) Authorizer

func (o *KickstartUIAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*KickstartUIAPI) ConsumersFor

func (o *KickstartUIAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*KickstartUIAPI) Context

func (o *KickstartUIAPI) Context() *middleware.Context

Context returns the middleware context for the kickstart UI API

func (*KickstartUIAPI) DefaultConsumes

func (o *KickstartUIAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*KickstartUIAPI) DefaultProduces

func (o *KickstartUIAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*KickstartUIAPI) Formats

func (o *KickstartUIAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*KickstartUIAPI) HandlerFor

func (o *KickstartUIAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*KickstartUIAPI) Init

func (o *KickstartUIAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*KickstartUIAPI) ProducersFor

func (o *KickstartUIAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*KickstartUIAPI) RegisterConsumer

func (o *KickstartUIAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*KickstartUIAPI) RegisterFormat

func (o *KickstartUIAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*KickstartUIAPI) RegisterProducer

func (o *KickstartUIAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*KickstartUIAPI) Serve

func (o *KickstartUIAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*KickstartUIAPI) ServeErrorFor

func (o *KickstartUIAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*KickstartUIAPI) SetDefaultConsumes

func (o *KickstartUIAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*KickstartUIAPI) SetDefaultProduces

func (o *KickstartUIAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*KickstartUIAPI) SetSpec

func (o *KickstartUIAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*KickstartUIAPI) Validate

func (o *KickstartUIAPI) Validate() error

Validate validates the registrations in the KickstartUIAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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