categraf/logs/input/container/noop.go

27 lines
628 B
Go

//go:build !no_logs
//Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package container
import (
"flashcat.cloud/categraf/logs/restart"
)
// noopLauncher does nothing.
type noopLauncher struct{}
// NewNoopLauncher returns a new noopLauncher.
func NewNoopLauncher() restart.Restartable {
return &noopLauncher{}
}
// Start does nothing.
func (l *noopLauncher) Start() {}
// Stop does nothing.
func (l *noopLauncher) Stop() {}