Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishfy committed Oct 7, 2023
1 parent 55d770b commit a077847
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 1 deletion.
16 changes: 16 additions & 0 deletions obs/interfaces.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package obs

import (
"context"
"net/http"
)

type APIClient interface {
CreateUpdateProject(ctx context.Context, project *Project) error
GetProjectMetaFile(ctx context.Context, projectName string) (*Project, error)
DeleteProject(ctx context.Context, project *Project) error
}

type HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
}
287 changes: 287 additions & 0 deletions obs/obsfakes/fake_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a077847

Please sign in to comment.