-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc749e1
commit 4fdf6a9
Showing
9 changed files
with
800 additions
and
371 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package mock | ||
|
||
import ( | ||
"context" | ||
|
||
fas "github.com/superfly/fly-autoscaler" | ||
"github.com/superfly/fly-go" | ||
) | ||
|
||
var _ fas.FlyClient = (*FlyClient)(nil) | ||
|
||
type FlyClient struct { | ||
GetOrganizationBySlugFunc func(ctx context.Context, slug string) (*fly.Organization, error) | ||
GetAppsForOrganizationFunc func(ctx context.Context, orgID string) ([]fly.App, error) | ||
} | ||
|
||
func (m *FlyClient) GetOrganizationBySlug(ctx context.Context, slug string) (*fly.Organization, error) { | ||
return m.GetOrganizationBySlugFunc(ctx, slug) | ||
} | ||
|
||
func (m *FlyClient) GetAppsForOrganization(ctx context.Context, orgID string) ([]fly.App, error) { | ||
return m.GetAppsForOrganizationFunc(ctx, orgID) | ||
} |
Oops, something went wrong.