-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15674 from hpidcock/merge-2.9-3.1-sidecar-teardown
#15674 Forward ports: - #15636 - #15650 - #15652 - #15653 - #15633 - #15657 - #15660 - #15661 - #15662 - #15663 Back ports: - #15336 New changes: - juju/description/v4 to v4.0.9 Minor conflicts across most files.
- Loading branch information
Showing
151 changed files
with
5,272 additions
and
3,055 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2023 Canonical Ltd. | ||
// Licensed under the AGPLv3, see LICENCE file for details. | ||
|
||
package lifeflag | ||
|
||
import ( | ||
"github.com/juju/names/v4" | ||
|
||
"github.com/juju/juju/api/base" | ||
"github.com/juju/juju/api/common/lifeflag" | ||
"github.com/juju/juju/core/life" | ||
"github.com/juju/juju/core/watcher" | ||
) | ||
|
||
// Client is the client used for connecting to the life flag facade. | ||
type Client interface { | ||
Life(names.Tag) (life.Value, error) | ||
Watch(names.Tag) (watcher.NotifyWatcher, error) | ||
} | ||
|
||
// NewClient creates a new life flag client. | ||
func NewClient(caller base.APICaller) Client { | ||
return lifeflag.NewClient(caller, "AgentLifeFlag") | ||
} |
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
Oops, something went wrong.