apinto

package
v1.4.3-beta Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const KeyServiceOfApi = "service_of_api"
View Source
const KeySubscribeService = "subscription_service"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationClient

type ApplicationClient struct {
	// contains filtered or unexported fields
}

func NewApplicationClient

func NewApplicationClient(client admin_client.Client) *ApplicationClient

func (*ApplicationClient) Offline

func (a *ApplicationClient) Offline(ctx context.Context, applications ...*gateway.ApplicationRelease) error

func (*ApplicationClient) Online

func (a *ApplicationClient) Online(ctx context.Context, applications ...*gateway.ApplicationRelease) error

type ClientDriver

type ClientDriver struct {
	// contains filtered or unexported fields
}

func NewClientDriver

func NewClientDriver(cfg *gateway.ClientConfig) (*ClientDriver, error)

func (*ClientDriver) Application

func (c *ClientDriver) Application() gateway.IApplicationClient

func (*ClientDriver) Begin

func (c *ClientDriver) Begin(ctx context.Context) error

func (*ClientDriver) Close

func (c *ClientDriver) Close(ctx context.Context) error

func (*ClientDriver) Commit

func (c *ClientDriver) Commit(ctx context.Context) error

func (*ClientDriver) Dynamic

func (c *ClientDriver) Dynamic(resource string) (gateway.IDynamicClient, error)

func (*ClientDriver) PluginSetting

func (c *ClientDriver) PluginSetting() gateway.IPluginSetting

func (*ClientDriver) Project

func (c *ClientDriver) Project() gateway.IProjectClient

func (*ClientDriver) Rollback

func (c *ClientDriver) Rollback(ctx context.Context) error

func (*ClientDriver) Service

func (c *ClientDriver) Service() gateway.IServiceClient

func (*ClientDriver) Strategy

func (c *ClientDriver) Strategy() gateway.IStrategyClient

func (*ClientDriver) Subscribe

func (c *ClientDriver) Subscribe() gateway.ISubscribeClient

type DynamicClient

type DynamicClient struct {
	// contains filtered or unexported fields
}

func NewDynamicClient

func NewDynamicClient(client admin_client.Client, resource string) (*DynamicClient, error)

func (*DynamicClient) Offline

func (d *DynamicClient) Offline(ctx context.Context, resources ...*gateway.DynamicRelease) error

func (*DynamicClient) Online

func (d *DynamicClient) Online(ctx context.Context, resources ...*gateway.DynamicRelease) error

func (*DynamicClient) Version

func (d *DynamicClient) Version(ctx context.Context, resourceId string) (string, error)

func (*DynamicClient) Versions

func (d *DynamicClient) Versions(ctx context.Context, matchLabels map[string]string) (map[string]string, error)

type Factory

type Factory struct {
}

func (*Factory) Create

func (f *Factory) Create(config *gateway.ClientConfig) (gateway.IClientDriver, error)

type PluginSettingClient

type PluginSettingClient struct {
	// contains filtered or unexported fields
}

func NewPluginSettingClient

func NewPluginSettingClient(client admin_client.Client) *PluginSettingClient

func (*PluginSettingClient) Init

func (*PluginSettingClient) Set

func (p *PluginSettingClient) Set(ctx context.Context, configs []*gateway.PluginConfig) error

type ProjectClient

type ProjectClient struct {
	// contains filtered or unexported fields
}

func NewProjectClient

func NewProjectClient(client admin_client.Client) *ProjectClient

func (*ProjectClient) Offline

func (p *ProjectClient) Offline(ctx context.Context, projects ...*gateway.ProjectRelease) error

func (*ProjectClient) Online

func (p *ProjectClient) Online(ctx context.Context, projects ...*gateway.ProjectRelease) error

type ServiceClient

type ServiceClient struct {
	// contains filtered or unexported fields
}

func NewServiceClient

func NewServiceClient(client admin_client.Client) *ServiceClient

func (*ServiceClient) Offline

func (s *ServiceClient) Offline(ctx context.Context, resources ...*gateway.ServiceRelease) error

func (*ServiceClient) Online

func (s *ServiceClient) Online(ctx context.Context, resources ...*gateway.ServiceRelease) error

type StrategyClient

type StrategyClient struct {
	// contains filtered or unexported fields
}

func NewStrategyClient

func NewStrategyClient(client admin_client.Client) *StrategyClient

func (*StrategyClient) Offline

func (s *StrategyClient) Offline(ctx context.Context, resources ...*eosc.Base[gateway.StrategyRelease]) error

func (*StrategyClient) Online

func (s *StrategyClient) Online(ctx context.Context, resources ...*eosc.Base[gateway.StrategyRelease]) error

type SubscribeClient

type SubscribeClient struct {
	// contains filtered or unexported fields
}

func NewSubscribeClient

func NewSubscribeClient(client admin_client.Client) *SubscribeClient

func (*SubscribeClient) Offline

func (s *SubscribeClient) Offline(ctx context.Context, resources ...*gateway.SubscribeRelease) error

func (*SubscribeClient) Online

func (s *SubscribeClient) Online(ctx context.Context, resources ...*gateway.SubscribeRelease) error

Directories

Path Synopsis
处理cors扩展, 对启用了cors的api,添加 cors信息 从apinto移除api时, 移除对应的cors信息
处理cors扩展, 对启用了cors的api,添加 cors信息 从apinto移除api时, 移除对应的cors信息

Jump to

Keyboard shortcuts

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