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 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) 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 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) 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 nolint: revive
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 nolint: revive
Source Files
¶
Click to show internal directories.
Click to hide internal directories.