-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(fleet): Add "direct" RC option to pull configurations (#30369)
- Loading branch information
1 parent
0ad9119
commit ba595d7
Showing
12 changed files
with
408 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// 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 cdn | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/DataDog/datadog-agent/pkg/util/log" | ||
) | ||
|
||
type cdnNoop struct { | ||
} | ||
|
||
type configNoop struct{} | ||
|
||
// newCDNNoop creates a new noop CDN. | ||
func newCDNNoop() (CDN, error) { | ||
return &cdnNoop{}, nil | ||
} | ||
|
||
// Get gets the configuration from the CDN. | ||
func (c *cdnNoop) Get(_ context.Context, _ string) (Config, error) { | ||
log.Debug("Noop CDN get") | ||
return &configNoop{}, nil | ||
} | ||
|
||
func (c *cdnNoop) Close() error { | ||
log.Debug("Noop CDN close") | ||
return nil | ||
} | ||
|
||
func (c *configNoop) Version() string { | ||
log.Debug("Noop CDN version") | ||
return "" | ||
} | ||
|
||
func (c *configNoop) Write(_ string) error { | ||
log.Debug("Noop CDN write") | ||
return nil | ||
} |
Oops, something went wrong.