Documentation ¶
Index ¶
- Constants
- func NewGatewayOpenapiServiceImpl() error
- type GatewayOpenapiServiceImpl
- func (impl GatewayOpenapiServiceImpl) ClearRuntimeRoute(id string) error
- func (impl GatewayOpenapiServiceImpl) Clone(ctx context.Context) endpoint_api.GatewayOpenapiService
- func (impl GatewayOpenapiServiceImpl) CreatePackage(ctx context.Context, args *gw.DiceArgsDto, dto *gw.PackageDto) (result *gw.PackageInfoDto, existName string, err error)
- func (impl GatewayOpenapiServiceImpl) CreatePackageApi(id string, dto *gw.OpenapiDto) (apiId string, exist bool, err error)
- func (impl GatewayOpenapiServiceImpl) CreateTenantHubPackages(ctx context.Context, tenantID string, session *db.SessionHelper) error
- func (impl GatewayOpenapiServiceImpl) CreateTenantPackage(tenantId string, gatewayProvider string, session *db.SessionHelper) error
- func (impl GatewayOpenapiServiceImpl) CreateUnityPackageZone(packageId string, session *db.SessionHelper) (*orm.GatewayZone, error)
- func (impl GatewayOpenapiServiceImpl) DeleteKongApi(adapter gateway_providers.GatewayAdapter, apiId string) error
- func (impl GatewayOpenapiServiceImpl) DeletePackage(id string) (result bool, err error)
- func (impl *GatewayOpenapiServiceImpl) DeletePackageApi(packageId, apiId string) (result bool, err error)
- func (impl GatewayOpenapiServiceImpl) GetGatewayProvider(clusterName string) (string, error)
- func (impl GatewayOpenapiServiceImpl) GetPackage(id string) (dto *gw.PackageInfoDto, err error)
- func (impl GatewayOpenapiServiceImpl) GetPackageApis(ctx context.Context, id string, args *gw.GetOpenapiDto) (result common.NewPageQuery, err error)
- func (impl GatewayOpenapiServiceImpl) GetPackages(ctx context.Context, args *gw.GetPackagesDto) (res common.NewPageQuery, err error)
- func (impl GatewayOpenapiServiceImpl) GetPackagesName(args *gw.GetPackagesDto) (list []gw.PackageInfoDto, err error)
- func (impl GatewayOpenapiServiceImpl) ListAllPackages() ([]orm.GatewayPackage, error)
- func (impl GatewayOpenapiServiceImpl) ListPackageAllApis(id string) ([]orm.GatewayPackageApi, error)
- func (impl GatewayOpenapiServiceImpl) RefreshRuntimePackage(packageId string, endpoint *orm.GatewayRuntimeService, ...) error
- func (impl GatewayOpenapiServiceImpl) SessionCreatePackageApi(id string, dto *gw.OpenapiDto, session *db.SessionHelper, ...) (bool, string, *apistructs.Audit, error)
- func (impl GatewayOpenapiServiceImpl) SetRuntimeEndpoint(ctx context.Context, info runtime_service.RuntimeEndpointInfo) error
- func (impl GatewayOpenapiServiceImpl) TouchPackageApiZone(info endpoint_api.PackageApiInfo, session ...*db.SessionHelper) (string, error)
- func (impl GatewayOpenapiServiceImpl) TouchPackageRootApi(packageId string, reqDto *gw.OpenapiDto) (result bool, err error)
- func (impl GatewayOpenapiServiceImpl) TouchRuntimePackageMeta(endpoint *orm.GatewayRuntimeService, session *db.SessionHelper) (string, bool, error)
- func (impl GatewayOpenapiServiceImpl) TryClearRuntimePackage(runtimeService *orm.GatewayRuntimeService, session *db.SessionHelper, ...) error
- func (impl GatewayOpenapiServiceImpl) UpdatePackage(orgId, id string, dto *gw.PackageDto) (result *gw.PackageInfoDto, err error)
- func (impl GatewayOpenapiServiceImpl) UpdatePackageApi(packageId, apiId string, dto *gw.OpenapiDto) (result *gw.OpenapiInfoDto, exist bool, err error)
- func (impl GatewayOpenapiServiceImpl) UpdatePackageApiAclsWhenCreateApi(packageId, packageApiId string, consumerIds []string)
Constants ¶
View Source
const (
K8S_SVC_CLUSTER_DOMAIN = ".svc.cluster.local"
)
Variables ¶
This section is empty.
Functions ¶
func NewGatewayOpenapiServiceImpl ¶
func NewGatewayOpenapiServiceImpl() error
Types ¶
type GatewayOpenapiServiceImpl ¶
type GatewayOpenapiServiceImpl struct {
// contains filtered or unexported fields
}
func (GatewayOpenapiServiceImpl) ClearRuntimeRoute ¶
func (impl GatewayOpenapiServiceImpl) ClearRuntimeRoute(id string) error
func (GatewayOpenapiServiceImpl) Clone ¶
func (impl GatewayOpenapiServiceImpl) Clone(ctx context.Context) endpoint_api.GatewayOpenapiService
func (GatewayOpenapiServiceImpl) CreatePackage ¶
func (impl GatewayOpenapiServiceImpl) CreatePackage(ctx context.Context, args *gw.DiceArgsDto, dto *gw.PackageDto) (result *gw.PackageInfoDto, existName string, err error)
func (GatewayOpenapiServiceImpl) CreatePackageApi ¶
func (impl GatewayOpenapiServiceImpl) CreatePackageApi(id string, dto *gw.OpenapiDto) (apiId string, exist bool, err error)
func (GatewayOpenapiServiceImpl) CreateTenantHubPackages ¶
func (impl GatewayOpenapiServiceImpl) CreateTenantHubPackages(ctx context.Context, tenantID string, session *db.SessionHelper) error
func (GatewayOpenapiServiceImpl) CreateTenantPackage ¶
func (impl GatewayOpenapiServiceImpl) CreateTenantPackage(tenantId string, gatewayProvider string, session *db.SessionHelper) error
func (GatewayOpenapiServiceImpl) CreateUnityPackageZone ¶
func (impl GatewayOpenapiServiceImpl) CreateUnityPackageZone(packageId string, session *db.SessionHelper) (*orm.GatewayZone, error)
func (GatewayOpenapiServiceImpl) DeleteKongApi ¶
func (impl GatewayOpenapiServiceImpl) DeleteKongApi(adapter gateway_providers.GatewayAdapter, apiId string) error
func (GatewayOpenapiServiceImpl) DeletePackage ¶
func (impl GatewayOpenapiServiceImpl) DeletePackage(id string) (result bool, err error)
func (*GatewayOpenapiServiceImpl) DeletePackageApi ¶
func (impl *GatewayOpenapiServiceImpl) DeletePackageApi(packageId, apiId string) (result bool, err error)
func (GatewayOpenapiServiceImpl) GetGatewayProvider ¶
func (impl GatewayOpenapiServiceImpl) GetGatewayProvider(clusterName string) (string, error)
func (GatewayOpenapiServiceImpl) GetPackage ¶
func (impl GatewayOpenapiServiceImpl) GetPackage(id string) (dto *gw.PackageInfoDto, err error)
func (GatewayOpenapiServiceImpl) GetPackageApis ¶
func (impl GatewayOpenapiServiceImpl) GetPackageApis(ctx context.Context, id string, args *gw.GetOpenapiDto) (result common.NewPageQuery, err error)
func (GatewayOpenapiServiceImpl) GetPackages ¶
func (impl GatewayOpenapiServiceImpl) GetPackages(ctx context.Context, args *gw.GetPackagesDto) (res common.NewPageQuery, err error)
func (GatewayOpenapiServiceImpl) GetPackagesName ¶
func (impl GatewayOpenapiServiceImpl) GetPackagesName(args *gw.GetPackagesDto) (list []gw.PackageInfoDto, err error)
func (GatewayOpenapiServiceImpl) ListAllPackages ¶
func (impl GatewayOpenapiServiceImpl) ListAllPackages() ([]orm.GatewayPackage, error)
func (GatewayOpenapiServiceImpl) ListPackageAllApis ¶
func (impl GatewayOpenapiServiceImpl) ListPackageAllApis(id string) ([]orm.GatewayPackageApi, error)
func (GatewayOpenapiServiceImpl) RefreshRuntimePackage ¶
func (impl GatewayOpenapiServiceImpl) RefreshRuntimePackage(packageId string, endpoint *orm.GatewayRuntimeService, session *db.SessionHelper) error
func (GatewayOpenapiServiceImpl) SessionCreatePackageApi ¶
func (impl GatewayOpenapiServiceImpl) SessionCreatePackageApi(id string, dto *gw.OpenapiDto, session *db.SessionHelper, injectRuntimeDomain bool) (bool, string, *apistructs.Audit, error)
func (GatewayOpenapiServiceImpl) SetRuntimeEndpoint ¶
func (impl GatewayOpenapiServiceImpl) SetRuntimeEndpoint(ctx context.Context, info runtime_service.RuntimeEndpointInfo) error
func (GatewayOpenapiServiceImpl) TouchPackageApiZone ¶
func (impl GatewayOpenapiServiceImpl) TouchPackageApiZone(info endpoint_api.PackageApiInfo, session ...*db.SessionHelper) (string, error)
func (GatewayOpenapiServiceImpl) TouchPackageRootApi ¶
func (impl GatewayOpenapiServiceImpl) TouchPackageRootApi(packageId string, reqDto *gw.OpenapiDto) (result bool, err error)
func (GatewayOpenapiServiceImpl) TouchRuntimePackageMeta ¶
func (impl GatewayOpenapiServiceImpl) TouchRuntimePackageMeta(endpoint *orm.GatewayRuntimeService, session *db.SessionHelper) (string, bool, error)
func (GatewayOpenapiServiceImpl) TryClearRuntimePackage ¶
func (impl GatewayOpenapiServiceImpl) TryClearRuntimePackage(runtimeService *orm.GatewayRuntimeService, session *db.SessionHelper, force ...bool) error
func (GatewayOpenapiServiceImpl) UpdatePackage ¶
func (impl GatewayOpenapiServiceImpl) UpdatePackage(orgId, id string, dto *gw.PackageDto) (result *gw.PackageInfoDto, err error)
func (GatewayOpenapiServiceImpl) UpdatePackageApi ¶
func (impl GatewayOpenapiServiceImpl) UpdatePackageApi(packageId, apiId string, dto *gw.OpenapiDto) (result *gw.OpenapiInfoDto, exist bool, err error)
func (GatewayOpenapiServiceImpl) UpdatePackageApiAclsWhenCreateApi ¶
func (impl GatewayOpenapiServiceImpl) UpdatePackageApiAclsWhenCreateApi(packageId, packageApiId string, consumerIds []string)
Click to show internal directories.
Click to hide internal directories.