Documentation ¶
Overview ¶
Package handlers implements api handlers
Index ¶
- Constants
- func Err(e error) *models.Error
- type App
- func (app *App) ApplyTKGConfigForAWS(params aws.ApplyTKGConfigForAWSParams) middleware.Responder
- func (app *App) ApplyTKGConfigForAzure(params azure.ApplyTKGConfigForAzureParams) middleware.Responder
- func (app *App) ApplyTKGConfigForDocker(params docker.ApplyTKGConfigForDockerParams) middleware.Responder
- func (app *App) ApplyTKGConfigForVsphere(params vsphere.ApplyTKGConfigForVsphereParams) middleware.Responder
- func (app *App) ConfigureHandlers(api middleware.RoutableAPI)
- func (app *App) CreateAWSRegionalCluster(params aws.CreateAWSRegionalClusterParams) middleware.Responder
- func (app *App) CreateAzureRegionalCluster(params azure.CreateAzureRegionalClusterParams) middleware.Responder
- func (app *App) CreateAzureResourceGroup(params azure.CreateAzureResourceGroupParams) middleware.Responder
- func (app *App) CreateAzureVirtualNetwork(params azure.CreateAzureVirtualNetworkParams) middleware.Responder
- func (app *App) CreateDockerRegionalCluster(params docker.CreateDockerRegionalClusterParams) middleware.Responder
- func (app *App) CreateVSphereRegionalCluster(params vsphere.CreateVSphereRegionalClusterParams) middleware.Responder
- func (app *App) ExportAWSConfig(params aws.ExportTKGConfigForAWSParams) middleware.Responder
- func (app *App) ExportAzureConfig(params azure.ExportTKGConfigForAzureParams) middleware.Responder
- func (app *App) ExportDockerConfig(params docker.ExportTKGConfigForDockerParams) middleware.Responder
- func (app *App) ExportVSphereConfig(params vsphere.ExportTKGConfigForVsphereParams) middleware.Responder
- func (app *App) GetAWSAvailabilityZones(params aws.GetAWSAvailabilityZonesParams) middleware.Responder
- func (app *App) GetAWSCredentialProfiles(params aws.GetAWSCredentialProfilesParams) middleware.Responder
- func (app *App) GetAWSNodeTypes(params aws.GetAWSNodeTypesParams) middleware.Responder
- func (app *App) GetAWSOSImages(params aws.GetAWSOSImagesParams) middleware.Responder
- func (app *App) GetAWSRegions(params aws.GetAWSRegionsParams) middleware.Responder
- func (app *App) GetAWSSubnets(params aws.GetAWSSubnetsParams) middleware.Responder
- func (app *App) GetAviClouds(params avi.GetAviCloudsParams) middleware.Responder
- func (app *App) GetAviServiceEngineGroups(params avi.GetAviServiceEngineGroupsParams) middleware.Responder
- func (app *App) GetAviVipNetworks(params avi.GetAviVipNetworksParams) middleware.Responder
- func (app *App) GetAzureEndpoint(params azure.GetAzureEndpointParams) middleware.Responder
- func (app *App) GetAzureInstanceTypes(params azure.GetAzureInstanceTypesParams) middleware.Responder
- func (app *App) GetAzureOSImages(params azure.GetAzureOSImagesParams) middleware.Responder
- func (app *App) GetAzureRegions(params azure.GetAzureRegionsParams) middleware.Responder
- func (app *App) GetAzureResourceGroups(params azure.GetAzureResourceGroupsParams) middleware.Responder
- func (app *App) GetAzureVirtualNetworks(params azure.GetAzureVnetsParams) middleware.Responder
- func (app *App) GetFeatureFlags(params features.GetFeatureFlagsParams) middleware.Responder
- func (app *App) GetProvider(params provider.GetProviderParams) middleware.Responder
- func (app *App) GetTanzuEdition(params edition.GetTanzuEditionParams) middleware.Responder
- func (app *App) GetVPCs(params aws.GetVPCsParams) middleware.Responder
- func (app *App) GetVSphereDatacenters(params vsphere.GetVSphereDatacentersParams) middleware.Responder
- func (app *App) GetVSphereDatastores(params vsphere.GetVSphereDatastoresParams) middleware.Responder
- func (app *App) GetVSphereFolders(params vsphere.GetVSphereFoldersParams) middleware.Responder
- func (app *App) GetVSphereNetworks(params vsphere.GetVSphereNetworksParams) middleware.Responder
- func (app *App) GetVSphereResourcePools(params vsphere.GetVSphereResourcePoolsParams) middleware.Responder
- func (app *App) GetVsphereComputeResources(params vsphere.GetVSphereComputeResourcesParams) middleware.Responder
- func (app *App) GetVsphereOSImages(params vsphere.GetVSphereOSImagesParams) middleware.Responder
- func (app *App) GetVsphereThumbprint(params vsphere.GetVsphereThumbprintParams) middleware.Responder
- func (app *App) ImportAwsConfig(params aws.ImportTKGConfigForAWSParams) middleware.Responder
- func (app *App) ImportAzureConfig(params azure.ImportTKGConfigForAzureParams) middleware.Responder
- func (app *App) ImportDockerConfig(params docker.ImportTKGConfigForDockerParams) middleware.Responder
- func (app *App) ImportVSphereConfig(params vsphere.ImportTKGConfigForVsphereParams) middleware.Responder
- func (app *App) IsDockerDaemonAvailable(params docker.CheckIfDockerDaemonAvailableParams) middleware.Responder
- func (app *App) SetAWSEndPoint(params aws.SetAWSEndpointParams) middleware.Responder
- func (app *App) SetAzureEndPoint(params azure.SetAzureEndpointParams) middleware.Responder
- func (app *App) SetVSphereEndpoint(params vsphere.SetVSphereEndpointParams) middleware.Responder
- func (app *App) StartSendingLogsToUI()
- func (app *App) VerifyAccount(params avi.VerifyAccountParams) middleware.Responder
- func (app *App) VerifyGroupSearch(params ldap.VerifyLdapGroupSearchParams) middleware.Responder
- func (app *App) VerifyLdapBind(params ldap.VerifyLdapBindParams) middleware.Responder
- func (app *App) VerifyLdapCloseConnection(params ldap.VerifyLdapCloseConnectionParams) middleware.Responder
- func (app *App) VerifyLdapConnect(params ldap.VerifyLdapConnectParams) middleware.Responder
- func (app *App) VerifyUserSearch(params ldap.VerifyLdapUserSearchParams) middleware.Responder
Constants ¶
const ( InfrastructureProviderVSphere = "vsphere" InfrastructureProviderAWS = "aws" InfrastructureProviderAzure = "azure" InfrastructureProviderDocker = "docker" )
infrastructure name constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { InitOptions client.InitRegionOptions AppConfig types.AppConfig TKGTimeout time.Duration TKGConfigReaderWriter tkgconfigreaderwriter.TKGConfigReaderWriter // contains filtered or unexported fields }
App application structs consisting init options and clients
func (*App) ApplyTKGConfigForAWS ¶
func (app *App) ApplyTKGConfigForAWS(params aws.ApplyTKGConfigForAWSParams) middleware.Responder
ApplyTKGConfigForAWS applies TKG configuration for AWS
func (*App) ApplyTKGConfigForAzure ¶
func (app *App) ApplyTKGConfigForAzure(params azure.ApplyTKGConfigForAzureParams) middleware.Responder
ApplyTKGConfigForAzure applies TKG configuration for Azure
func (*App) ApplyTKGConfigForDocker ¶
func (app *App) ApplyTKGConfigForDocker(params docker.ApplyTKGConfigForDockerParams) middleware.Responder
ApplyTKGConfigForDocker applies TKG configuration for Docker
func (*App) ApplyTKGConfigForVsphere ¶
func (app *App) ApplyTKGConfigForVsphere(params vsphere.ApplyTKGConfigForVsphereParams) middleware.Responder
ApplyTKGConfigForVsphere applies TKG configuration for vSphere
func (*App) ConfigureHandlers ¶
func (app *App) ConfigureHandlers(api middleware.RoutableAPI)
ConfigureHandlers configures API handlers func
func (*App) CreateAWSRegionalCluster ¶
func (app *App) CreateAWSRegionalCluster(params aws.CreateAWSRegionalClusterParams) middleware.Responder
CreateAWSRegionalCluster creates aws management cluster
func (*App) CreateAzureRegionalCluster ¶
func (app *App) CreateAzureRegionalCluster(params azure.CreateAzureRegionalClusterParams) middleware.Responder
CreateAzureRegionalCluster creates azure management cluster
func (*App) CreateAzureResourceGroup ¶
func (app *App) CreateAzureResourceGroup(params azure.CreateAzureResourceGroupParams) middleware.Responder
CreateAzureResourceGroup creates a new Azure resource group
func (*App) CreateAzureVirtualNetwork ¶
func (app *App) CreateAzureVirtualNetwork(params azure.CreateAzureVirtualNetworkParams) middleware.Responder
CreateAzureVirtualNetwork creates a new Azure Virtual Network
func (*App) CreateDockerRegionalCluster ¶
func (app *App) CreateDockerRegionalCluster(params docker.CreateDockerRegionalClusterParams) middleware.Responder
CreateDockerRegionalCluster creates docker management cluster
func (*App) CreateVSphereRegionalCluster ¶
func (app *App) CreateVSphereRegionalCluster(params vsphere.CreateVSphereRegionalClusterParams) middleware.Responder
CreateVSphereRegionalCluster creates vSphere management cluster
func (*App) ExportAWSConfig ¶ added in v0.9.0
func (app *App) ExportAWSConfig(params aws.ExportTKGConfigForAWSParams) middleware.Responder
ExportAWSConfig creates return payload of config file string from incoming params object
func (*App) ExportAzureConfig ¶ added in v0.9.0
func (app *App) ExportAzureConfig(params azure.ExportTKGConfigForAzureParams) middleware.Responder
ExportAzureConfig creates return payload of config file string from incoming params object
func (*App) ExportDockerConfig ¶ added in v0.9.0
func (app *App) ExportDockerConfig(params docker.ExportTKGConfigForDockerParams) middleware.Responder
ExportDockerConfig creates return payload of config file string from incoming params object
func (*App) ExportVSphereConfig ¶ added in v0.9.0
func (app *App) ExportVSphereConfig(params vsphere.ExportTKGConfigForVsphereParams) middleware.Responder
ExportVSphereConfig creates return payload of config file string from incoming params object
func (*App) GetAWSAvailabilityZones ¶
func (app *App) GetAWSAvailabilityZones(params aws.GetAWSAvailabilityZonesParams) middleware.Responder
GetAWSAvailabilityZones gets availability zones under user-specified region
func (*App) GetAWSCredentialProfiles ¶
func (app *App) GetAWSCredentialProfiles(params aws.GetAWSCredentialProfilesParams) middleware.Responder
GetAWSCredentialProfiles gets aws credential profile
func (*App) GetAWSNodeTypes ¶
func (app *App) GetAWSNodeTypes(params aws.GetAWSNodeTypesParams) middleware.Responder
GetAWSNodeTypes gets aws node types
func (*App) GetAWSOSImages ¶
func (app *App) GetAWSOSImages(params aws.GetAWSOSImagesParams) middleware.Responder
GetAWSOSImages gets os information for AWS
func (*App) GetAWSRegions ¶
func (app *App) GetAWSRegions(params aws.GetAWSRegionsParams) middleware.Responder
GetAWSRegions returns list of AWS regions
func (*App) GetAWSSubnets ¶
func (app *App) GetAWSSubnets(params aws.GetAWSSubnetsParams) middleware.Responder
GetAWSSubnets gets all subnets under given vpc ID
func (*App) GetAviClouds ¶
func (app *App) GetAviClouds(params avi.GetAviCloudsParams) middleware.Responder
GetAviClouds handles requests to GET avi clouds
func (*App) GetAviServiceEngineGroups ¶
func (app *App) GetAviServiceEngineGroups(params avi.GetAviServiceEngineGroupsParams) middleware.Responder
GetAviServiceEngineGroups handles requests to GET avi service engine groups
func (*App) GetAviVipNetworks ¶
func (app *App) GetAviVipNetworks(params avi.GetAviVipNetworksParams) middleware.Responder
GetAviVipNetworks handles requests to GET avi VIP networks
func (*App) GetAzureEndpoint ¶
func (app *App) GetAzureEndpoint(params azure.GetAzureEndpointParams) middleware.Responder
GetAzureEndpoint gets azure account info set in environment variables
func (*App) GetAzureInstanceTypes ¶
func (app *App) GetAzureInstanceTypes(params azure.GetAzureInstanceTypesParams) middleware.Responder
GetAzureInstanceTypes lists the available instance types for a given region
func (*App) GetAzureOSImages ¶
func (app *App) GetAzureOSImages(params azure.GetAzureOSImagesParams) middleware.Responder
GetAzureOSImages gets os information for Azure
func (*App) GetAzureRegions ¶
func (app *App) GetAzureRegions(params azure.GetAzureRegionsParams) middleware.Responder
GetAzureRegions gets a list of all available regions
func (*App) GetAzureResourceGroups ¶
func (app *App) GetAzureResourceGroups(params azure.GetAzureResourceGroupsParams) middleware.Responder
GetAzureResourceGroups gets the list of all Azure resource groups
func (*App) GetAzureVirtualNetworks ¶
func (app *App) GetAzureVirtualNetworks(params azure.GetAzureVnetsParams) middleware.Responder
GetAzureVirtualNetworks gets the list of all Azure virtual networks for a resource group
func (*App) GetFeatureFlags ¶
func (app *App) GetFeatureFlags(params features.GetFeatureFlagsParams) middleware.Responder
GetFeatureFlags handles requests to GET features
func (*App) GetProvider ¶
func (app *App) GetProvider(params provider.GetProviderParams) middleware.Responder
GetProvider gets provider information
func (*App) GetTanzuEdition ¶
func (app *App) GetTanzuEdition(params edition.GetTanzuEditionParams) middleware.Responder
GetTanzuEdition returns the Tanzu edition
func (*App) GetVPCs ¶
func (app *App) GetVPCs(params aws.GetVPCsParams) middleware.Responder
GetVPCs gets all VPCs under current AWS account
func (*App) GetVSphereDatacenters ¶
func (app *App) GetVSphereDatacenters(params vsphere.GetVSphereDatacentersParams) middleware.Responder
GetVSphereDatacenters returns all the datacenters in vsphere
func (*App) GetVSphereDatastores ¶
func (app *App) GetVSphereDatastores(params vsphere.GetVSphereDatastoresParams) middleware.Responder
GetVSphereDatastores returns all the datastores in the datacenter
func (*App) GetVSphereFolders ¶
func (app *App) GetVSphereFolders(params vsphere.GetVSphereFoldersParams) middleware.Responder
GetVSphereFolders gets vsphere folders
func (*App) GetVSphereNetworks ¶
func (app *App) GetVSphereNetworks(params vsphere.GetVSphereNetworksParams) middleware.Responder
GetVSphereNetworks gets all the networks in the datacenter
func (*App) GetVSphereResourcePools ¶
func (app *App) GetVSphereResourcePools(params vsphere.GetVSphereResourcePoolsParams) middleware.Responder
GetVSphereResourcePools gets all the resource pools in the datacenter
func (*App) GetVsphereComputeResources ¶
func (app *App) GetVsphereComputeResources(params vsphere.GetVSphereComputeResourcesParams) middleware.Responder
GetVsphereComputeResources gets vsphere compute resources
func (*App) GetVsphereOSImages ¶
func (app *App) GetVsphereOSImages(params vsphere.GetVSphereOSImagesParams) middleware.Responder
GetVsphereOSImages gets vm templates for deploying kubernetes node
func (*App) GetVsphereThumbprint ¶
func (app *App) GetVsphereThumbprint(params vsphere.GetVsphereThumbprintParams) middleware.Responder
GetVsphereThumbprint gets the vSphere thumbprint if insecure flag not set
func (*App) ImportAwsConfig ¶ added in v0.14.0
func (app *App) ImportAwsConfig(params aws.ImportTKGConfigForAWSParams) middleware.Responder
ImportAwsConfig receives a config file as a string (in ImportTKGConfigForAWSParams) and returns a AWSRegionalClusterParams object
func (*App) ImportAzureConfig ¶ added in v0.14.0
func (app *App) ImportAzureConfig(params azure.ImportTKGConfigForAzureParams) middleware.Responder
ImportAzureConfig receives a config file as a string (in ImportTKGConfigForAzureParams) and returns a AzureRegionalClusterParams object
func (*App) ImportDockerConfig ¶ added in v0.14.0
func (app *App) ImportDockerConfig(params docker.ImportTKGConfigForDockerParams) middleware.Responder
ImportDockerConfig receives a config file as a string (in ImportTKGConfigForDockerParams) and returns a DockerRegionalClusterParams object
func (*App) ImportVSphereConfig ¶ added in v0.14.0
func (app *App) ImportVSphereConfig(params vsphere.ImportTKGConfigForVsphereParams) middleware.Responder
ImportVSphereConfig receives a config file as a string (in ImportTKGConfigForVsphereParams) and returns a VsphereRegionalClusterParams object
func (*App) IsDockerDaemonAvailable ¶
func (app *App) IsDockerDaemonAvailable(params docker.CheckIfDockerDaemonAvailableParams) middleware.Responder
IsDockerDaemonAvailable validates docker daemon availability
func (*App) SetAWSEndPoint ¶
func (app *App) SetAWSEndPoint(params aws.SetAWSEndpointParams) middleware.Responder
SetAWSEndPoint verify and sets AWS account
func (*App) SetAzureEndPoint ¶
func (app *App) SetAzureEndPoint(params azure.SetAzureEndpointParams) middleware.Responder
SetAzureEndPoint verify and sets Azure account
func (*App) SetVSphereEndpoint ¶
func (app *App) SetVSphereEndpoint(params vsphere.SetVSphereEndpointParams) middleware.Responder
SetVSphereEndpoint validates vsphere credentials and sets the vsphere client into web app
func (*App) StartSendingLogsToUI ¶
func (app *App) StartSendingLogsToUI()
StartSendingLogsToUI creates logchannel passes it to tkg logger retrieves the logs through logChannel and passes it to webSocket
func (*App) VerifyAccount ¶
func (app *App) VerifyAccount(params avi.VerifyAccountParams) middleware.Responder
VerifyAccount validates avi credentials and sets the avi client into web app
func (*App) VerifyGroupSearch ¶
func (app *App) VerifyGroupSearch(params ldap.VerifyLdapGroupSearchParams) middleware.Responder
VerifyGroupSearch verifies LDAP group search capability
func (*App) VerifyLdapBind ¶
func (app *App) VerifyLdapBind(params ldap.VerifyLdapBindParams) middleware.Responder
VerifyLdapBind verifies LDAP authentication
func (*App) VerifyLdapCloseConnection ¶
func (app *App) VerifyLdapCloseConnection(params ldap.VerifyLdapCloseConnectionParams) middleware.Responder
VerifyLdapCloseConnection disconnect from a LDAP server
func (*App) VerifyLdapConnect ¶
func (app *App) VerifyLdapConnect(params ldap.VerifyLdapConnectParams) middleware.Responder
VerifyLdapConnect checks LDAP server reachability
func (*App) VerifyUserSearch ¶
func (app *App) VerifyUserSearch(params ldap.VerifyLdapUserSearchParams) middleware.Responder
VerifyUserSearch verifies LDAP user search capability