Skip to content

Commit d701f90

Browse files
committed
chore: regenerate containerprovisioner worker mocks
1 parent f3666e2 commit d701f90

3 files changed

Lines changed: 22 additions & 41 deletions

File tree

api/common/charms/common.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ func (c *ApplicationCharmInfoClient) ApplicationCharmInfo(ctx context.Context, a
6060

6161
// CharmInfo holds information about a charm.
6262
type CharmInfo struct {
63-
Revision int
64-
URL string
65-
Config *charm.ConfigSpec
66-
Meta *charm.Meta
67-
Actions *charm.Actions
68-
Manifest *charm.Manifest
69-
Version string
63+
Revision int
64+
URL string
65+
Config *charm.ConfigSpec
66+
Meta *charm.Meta
67+
Actions *charm.Actions
68+
Manifest *charm.Manifest
69+
Version string
7070
}
7171

7272
func (info *CharmInfo) Charm() charm.Charm {
@@ -83,13 +83,13 @@ func convertCharm(info *params.Charm) (*CharmInfo, error) {
8383
return nil, errors.Trace(err)
8484
}
8585
result := &CharmInfo{
86-
Revision: info.Revision,
87-
URL: info.URL,
88-
Config: params.FromCharmOptionMap(info.Config),
89-
Meta: meta,
90-
Actions: convertCharmActions(info.Actions),
91-
Manifest: manifest,
92-
Version: info.Version,
86+
Revision: info.Revision,
87+
URL: info.URL,
88+
Config: params.FromCharmOptionMap(info.Config),
89+
Meta: meta,
90+
Actions: convertCharmActions(info.Actions),
91+
Manifest: manifest,
92+
Version: info.Version,
9393
}
9494
return result, nil
9595
}

internal/worker/containerprovisioner/package_mock_test.go

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/params/charms.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ type CharmMeta struct {
123123
// Charm holds all the charm data that the client needs.
124124
// To be honest, it probably returns way more than what is actually needed.
125125
type Charm struct {
126-
Revision int `json:"revision"`
127-
URL string `json:"url"`
128-
Config map[string]CharmOption `json:"config"`
129-
Meta *CharmMeta `json:"meta,omitempty"`
130-
Actions *CharmActions `json:"actions,omitempty"`
131-
Manifest *CharmManifest `json:"manifest,omitempty"`
126+
Revision int `json:"revision"`
127+
URL string `json:"url"`
128+
Config map[string]CharmOption `json:"config"`
129+
Meta *CharmMeta `json:"meta,omitempty"`
130+
Actions *CharmActions `json:"actions,omitempty"`
131+
Manifest *CharmManifest `json:"manifest,omitempty"`
132132
// Deprecated: LXD profiles are no longer supported.
133-
LXDProfile *CharmLXDProfile `json:"lxd-profile,omitempty"`
134-
Version string `json:"version,omitempty"`
133+
LXDProfile *CharmLXDProfile `json:"lxd-profile,omitempty"`
134+
Version string `json:"version,omitempty"`
135135
}
136136

137137
// CharmActions mirrors charm.Actions.

0 commit comments

Comments
 (0)