-
Notifications
You must be signed in to change notification settings - Fork 55
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 #65 from auth0/a0cli-49-custom-domains
A0CLI-49: add initial custom-domains support
- Loading branch information
Showing
15 changed files
with
706 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,10 @@ build-all-platforms: | |
# Run all the tests and code checks | ||
ci: build-all-platforms test lint | ||
.PHONY: ci | ||
|
||
$(GOBIN)/mockgen: | ||
@cd && GO111MODULE=on go get github.com/golang/mock/[email protected] | ||
|
||
.PHONY: mocks | ||
mocks: $(GOBIN)/mockgen | ||
@go generate ./... |
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,22 @@ | ||
//go:generate mockgen -source=custom_domain.go -destination=custom_domain_mock.go -package=auth0 | ||
|
||
package auth0 | ||
|
||
import "gopkg.in/auth0.v5/management" | ||
|
||
type CustomDomainAPI interface { | ||
// Create a new custom domain. | ||
Create(r *management.CustomDomain, opts ...management.RequestOption) (err error) | ||
|
||
// Retrieve a custom domain configuration and status. | ||
Read(id string, opts ...management.RequestOption) (c *management.CustomDomain, err error) | ||
|
||
// Run the verification process on a custom domain. | ||
Verify(id string, opts ...management.RequestOption) (c *management.CustomDomain, err error) | ||
|
||
// Delete a custom domain and stop serving requests for it. | ||
Delete(id string, opts ...management.RequestOption) (err error) | ||
|
||
// List all custom domains. | ||
List(opts ...management.RequestOption) (c []*management.CustomDomain, err error) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.