Documentation
¶
Index ¶
- type APIAction
- func (a *APIAction) HandleGetHTTPUpstreamsServersRequest(ctx context.Context, action *mpi.NGINXPlusAction, instance *mpi.Instance) *mpi.DataPlaneResponse
- func (a *APIAction) HandleGetStreamUpstreamsRequest(ctx context.Context, instance *mpi.Instance) *mpi.DataPlaneResponse
- func (a *APIAction) HandleGetUpstreamsRequest(ctx context.Context, instance *mpi.Instance) *mpi.DataPlaneResponse
- func (a *APIAction) HandleUpdateHTTPUpstreamsRequest(ctx context.Context, action *mpi.NGINXPlusAction, instance *mpi.Instance) *mpi.DataPlaneResponse
- func (a *APIAction) HandleUpdateStreamServersRequest(ctx context.Context, action *mpi.NGINXPlusAction, instance *mpi.Instance) *mpi.DataPlaneResponse
- type NginxInstanceOperator
- type NginxInstanceProcessOperator
- func (p *NginxInstanceProcessOperator) FindNginxProcesses(ctx context.Context) ([]*nginxprocess.Process, error)
- func (p *NginxInstanceProcessOperator) FindParentProcessID(ctx context.Context, instanceID string, nginxProcesses []*nginxprocess.Process, ...) (int32, error)
- func (p *NginxInstanceProcessOperator) NginxWorkerProcesses(ctx context.Context, masterProcessPid int32) []*nginxprocess.Process
- type NginxLogTailerOperator
- type Resource
- type ResourceService
- func (r *ResourceService) AddInstances(instanceList []*mpi.Instance) *mpi.Resource
- func (r *ResourceService) AddOperator(instanceList []*mpi.Instance)
- func (r *ResourceService) ApplyConfig(ctx context.Context, instanceID string) (*model.NginxConfigContext, error)
- func (r *ResourceService) DeleteInstances(ctx context.Context, instanceList []*mpi.Instance) *mpi.Resource
- func (r *ResourceService) GetHTTPUpstreamServers(ctx context.Context, instance *mpi.Instance, upstream string) ([]client.UpstreamServer, error)
- func (r *ResourceService) GetStreamUpstreams(ctx context.Context, instance *mpi.Instance) (*client.StreamUpstreams, error)
- func (r *ResourceService) GetUpstreams(ctx context.Context, instance *mpi.Instance) (*client.Upstreams, error)
- func (r *ResourceService) Instance(instanceID string) *mpi.Instance
- func (r *ResourceService) RemoveOperator(instanceList []*mpi.Instance)
- func (r *ResourceService) UpdateHTTPUpstreamServers(ctx context.Context, instance *mpi.Instance, upstream string, ...) (added, updated, deleted []client.UpstreamServer, err error)
- func (r *ResourceService) UpdateInstances(ctx context.Context, instanceList []*mpi.Instance) *mpi.Resource
- func (r *ResourceService) UpdateStreamServers(ctx context.Context, instance *mpi.Instance, upstream string, ...) (added, updated, deleted []client.StreamUpstreamServer, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAction ¶
type APIAction struct {
ResourceService resourceServiceInterface
}
func (*APIAction) HandleGetHTTPUpstreamsServersRequest ¶
func (a *APIAction) HandleGetHTTPUpstreamsServersRequest(ctx context.Context, action *mpi.NGINXPlusAction, instance *mpi.Instance, ) *mpi.DataPlaneResponse
func (*APIAction) HandleGetStreamUpstreamsRequest ¶
func (*APIAction) HandleGetUpstreamsRequest ¶
func (*APIAction) HandleUpdateHTTPUpstreamsRequest ¶
func (a *APIAction) HandleUpdateHTTPUpstreamsRequest(ctx context.Context, action *mpi.NGINXPlusAction, instance *mpi.Instance, ) *mpi.DataPlaneResponse
func (*APIAction) HandleUpdateStreamServersRequest ¶
func (a *APIAction) HandleUpdateStreamServersRequest(ctx context.Context, action *mpi.NGINXPlusAction, instance *mpi.Instance, ) *mpi.DataPlaneResponse
type NginxInstanceOperator ¶
type NginxInstanceOperator struct {
// contains filtered or unexported fields
}
func NewInstanceOperator ¶
func NewInstanceOperator(agentConfig *config.Config) *NginxInstanceOperator
type NginxInstanceProcessOperator ¶ added in v3.2.1
type NginxInstanceProcessOperator struct{}
func NewNginxInstanceProcessOperator ¶ added in v3.2.1
func NewNginxInstanceProcessOperator() *NginxInstanceProcessOperator
func (*NginxInstanceProcessOperator) FindNginxProcesses ¶ added in v3.2.1
func (p *NginxInstanceProcessOperator) FindNginxProcesses(ctx context.Context) ([]*nginxprocess.Process, error)
func (*NginxInstanceProcessOperator) FindParentProcessID ¶ added in v3.2.1
func (p *NginxInstanceProcessOperator) FindParentProcessID(ctx context.Context, instanceID string, nginxProcesses []*nginxprocess.Process, executer exec.ExecInterface, ) (int32, error)
func (*NginxInstanceProcessOperator) NginxWorkerProcesses ¶ added in v3.2.1
func (p *NginxInstanceProcessOperator) NginxWorkerProcesses(ctx context.Context, masterProcessPid int32, ) []*nginxprocess.Process
type NginxLogTailerOperator ¶
type NginxLogTailerOperator struct {
// contains filtered or unexported fields
}
func NewLogTailerOperator ¶
func NewLogTailerOperator(agentConfig *config.Config) *NginxLogTailerOperator
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func (*Resource) Subscriptions ¶
type ResourceService ¶
type ResourceService struct {
// contains filtered or unexported fields
}
func NewResourceService ¶
func NewResourceService(ctx context.Context, agentConfig *config.Config) *ResourceService
func (*ResourceService) AddInstances ¶
func (r *ResourceService) AddInstances(instanceList []*mpi.Instance) *mpi.Resource
func (*ResourceService) AddOperator ¶
func (r *ResourceService) AddOperator(instanceList []*mpi.Instance)
func (*ResourceService) ApplyConfig ¶
func (r *ResourceService) ApplyConfig(ctx context.Context, instanceID string) (*model.NginxConfigContext, error)
func (*ResourceService) DeleteInstances ¶
func (*ResourceService) GetHTTPUpstreamServers ¶
func (r *ResourceService) GetHTTPUpstreamServers(ctx context.Context, instance *mpi.Instance, upstream string, ) ([]client.UpstreamServer, error)
func (*ResourceService) GetStreamUpstreams ¶
func (r *ResourceService) GetStreamUpstreams(ctx context.Context, instance *mpi.Instance, ) (*client.StreamUpstreams, error)
func (*ResourceService) GetUpstreams ¶
func (*ResourceService) Instance ¶
func (r *ResourceService) Instance(instanceID string) *mpi.Instance
func (*ResourceService) RemoveOperator ¶
func (r *ResourceService) RemoveOperator(instanceList []*mpi.Instance)
func (*ResourceService) UpdateHTTPUpstreamServers ¶
func (r *ResourceService) UpdateHTTPUpstreamServers(ctx context.Context, instance *mpi.Instance, upstream string, upstreams []*structpb.Struct, ) (added, updated, deleted []client.UpstreamServer, err error)
max number of returns from function is 3
func (*ResourceService) UpdateInstances ¶
func (*ResourceService) UpdateStreamServers ¶
func (r *ResourceService) UpdateStreamServers(ctx context.Context, instance *mpi.Instance, upstream string, upstreams []*structpb.Struct, ) (added, updated, deleted []client.StreamUpstreamServer, err error)
max number of returns from function is 3
Source Files
¶
Click to show internal directories.
Click to hide internal directories.