diff --git a/internal/repo/client.go b/internal/repo/client.go index c39932d..f0eb123 100644 --- a/internal/repo/client.go +++ b/internal/repo/client.go @@ -19,12 +19,18 @@ type GetRepositoryMethod func(username, repositoryName string) (Repository, erro // /@ exists. If not, returns "", error. type GetFileMethod func(username, repositoryName, branch, path string, since *time.Time) ([]byte, bool, error) +// Returns the result of a CNAME lookup for @domain. type LookupCNAMEMethod func(domain string) (string, error) +// Return the repository the domain should point to by looking up the TXT record +// "_rio-pages.". type LookupRepoTXTMethod func(domain string) (string, error) +// Check of the repository / contains the specified +// branch. type HasBranchMethod func(username, repositoryName, branchName string) bool +// Check if the specified username exists. type HasUserMethod func(username string) bool type Repository struct {