Documentation ¶
Index ¶
- Constants
- type ApplicationClient
- type ClientDriver
- func (c *ClientDriver) Application() gateway.IApplicationClient
- func (c *ClientDriver) Begin(ctx context.Context) error
- func (c *ClientDriver) Close(ctx context.Context) error
- func (c *ClientDriver) Commit(ctx context.Context) error
- func (c *ClientDriver) Dynamic(resource string) (gateway.IDynamicClient, error)
- func (c *ClientDriver) PluginSetting() gateway.IPluginSetting
- func (c *ClientDriver) Project() gateway.IProjectClient
- func (c *ClientDriver) Rollback(ctx context.Context) error
- func (c *ClientDriver) Service() gateway.IServiceClient
- func (c *ClientDriver) Strategy() gateway.IStrategyClient
- func (c *ClientDriver) Subscribe() gateway.ISubscribeClient
- type DynamicClient
- func (d *DynamicClient) Offline(ctx context.Context, resources ...*gateway.DynamicRelease) error
- func (d *DynamicClient) Online(ctx context.Context, resources ...*gateway.DynamicRelease) error
- func (d *DynamicClient) Version(ctx context.Context, resourceId string) (string, error)
- func (d *DynamicClient) Versions(ctx context.Context, matchLabels map[string]string) (map[string]string, error)
- type Factory
- type PluginSettingClient
- type ProjectClient
- type ServiceClient
- type StrategyClient
- type SubscribeClient
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) 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) 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
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) 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.