Skip to content

Commit

Permalink
add godocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Aug 27, 2024
1 parent bbe0a5c commit b797594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/jimmtest/mocks/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/canonical/jimm/v3/pkg/api/params"
)

// ModelManager defines the mock struct used to implement the ModelManger interface.
type ModelManager struct {
AddModel_ func(ctx context.Context, u *openfga.User, args *jimm.ModelCreateArgs) (*jujuparams.ModelInfo, error)
ChangeModelCredential_ func(ctx context.Context, user *openfga.User, modelTag names.ModelTag, cloudCredentialTag names.CloudCredentialTag) error
Expand Down
1 change: 1 addition & 0 deletions internal/jujuapi/modelmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func init() {
}
}

// ModelManager defines the model related operations that JIMM can perform.
type ModelManager interface {
AddModel(ctx context.Context, u *openfga.User, args *jimm.ModelCreateArgs) (_ *jujuparams.ModelInfo, err error)
ChangeModelCredential(ctx context.Context, user *openfga.User, modelTag names.ModelTag, cloudCredentialTag names.CloudCredentialTag) error
Expand Down

0 comments on commit b797594

Please sign in to comment.