# README
taubyte/go-auth-http
REST client for interfacing with the Taubyte Auth/Vault Protocol
Installation
go get github.com/taubyte/go-auth-http
Testing
The Mock server has been built in python. Make sure you install dependencies: TODO: move mock to golang http mocks
pip3 install -r test_server/requirements.txt
go test -v ./...
License
Please see the LICENSE file for details.
Help
Find us on our Discord
Maintainers
- Samy Fodil @samyfodil
- Sam Stoltenberg @skelouse
- Tafseer Khan @tafseer-khan
# Packages
No description provided by the author
# Functions
Auth returns an Option that will set the auth token of the client.
No description provided by the author
No description provided by the author
New returns a new Client based on the options provided and an error.
Provider returns an Option that will set the git provider of the client currently only github is supported.
Timeout returns an Option that will set the timeout of the client.
Unsecure returns an Option that will allow the client to connect to a server with an invalid certificate.
URL returns an Option that will set the url of the auth server.
# Variables
CreateRepositoryRetryAttempts is the number of times to retry creating a repository.
CreateRepositoryRetryDelay is the delay between retry attempts.
DefaultTimeout is the default timeout for all requests.
# Structs
No description provided by the author
CreateProjectData is the data that is sent to the server to create a new project The repositories only need an id that is registered with the server.
Device is the data that is sent to/from the server when getting or updating a device Note: the client and id of the Project are used in calls to the server.
No description provided by the author
Project is data which is returned from the server when getting a project Note: filling the RepoList field is a separate call.
ProjectReturn is the data that is returned from the server when creating or getting a project.
ProjectsReturn is the data that is returned from the server when listing projects.
RawRepoData is the data that is returned from the server when getting repositories of a project.
RawRepoDataOuter is the data that is returned from the server when fetching repositories of a project.
Repository is the data that is sent to the server to register a repository or for creating a project.
No description provided by the author
UserData is the data that is returned from the server when getting user data.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author