Documentation
¶
Index ¶
- Variables
- func IsLintError(e error) bool
- func NewErrLintError(lintErrors []string) error
- func NewServerMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*benthosv1beta2.Server]
- func NewStreamMutator(client client.Client, scheme *runtime.Scheme, api Api) controllerutils.Mutator[*benthosv1beta2.Stream]
- type Api
- type BenthosStream
- type DefaultApi
- func (a *DefaultApi) CreateStream(ctx context.Context, address string, id string, config string) error
- func (a *DefaultApi) DeleteStream(ctx context.Context, address string, id string) error
- func (a *DefaultApi) GetStream(ctx context.Context, address, id string) (*BenthosStream, error)
- func (a *DefaultApi) UpdateStream(ctx context.Context, address string, id string, config string) error
- type ErrorResponse
- type ServerMutator
- type StreamMutator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyExists = errors.New("stream already exists") ErrNotFound = errors.New("stream not found") )
Functions ¶
func IsLintError ¶
func NewErrLintError ¶
func NewServerMutator ¶
func NewServerMutator(client client.Client, scheme *runtime.Scheme) controllerutils.Mutator[*benthosv1beta2.Server]
func NewStreamMutator ¶
func NewStreamMutator(client client.Client, scheme *runtime.Scheme, api Api) controllerutils.Mutator[*benthosv1beta2.Stream]
Types ¶
type Api ¶
type Api interface {
CreateStream(ctx context.Context, address string, id string, config string) error
GetStream(ctx context.Context, address, id string) (*BenthosStream, error)
UpdateStream(ctx context.Context, address string, id string, config string) error
DeleteStream(ctx context.Context, address string, id string) error
}
type BenthosStream ¶
type DefaultApi ¶
type DefaultApi struct {
}
func NewDefaultApi ¶
func NewDefaultApi() *DefaultApi
func (*DefaultApi) CreateStream ¶
func (*DefaultApi) DeleteStream ¶
func (*DefaultApi) GetStream ¶
func (a *DefaultApi) GetStream(ctx context.Context, address, id string) (*BenthosStream, error)
func (*DefaultApi) UpdateStream ¶
type ErrorResponse ¶
type ErrorResponse struct {
LintErrors []string `json:"lint_errors,omitempty"`
}
type ServerMutator ¶
type ServerMutator struct {
// contains filtered or unexported fields
}
func (*ServerMutator) Mutate ¶
func (m *ServerMutator) Mutate(ctx context.Context, server *benthosv1beta2.Server) (*ctrl.Result, error)
func (*ServerMutator) SetupWithBuilder ¶
type StreamMutator ¶
type StreamMutator struct {
// contains filtered or unexported fields
}
func (*StreamMutator) Mutate ¶
func (s *StreamMutator) Mutate(ctx context.Context, stream *benthosv1beta2.Stream) (*ctrl.Result, error)
func (*StreamMutator) SetupWithBuilder ¶
Click to show internal directories.
Click to hide internal directories.