-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement new storage with gorm and storm
- Loading branch information
Showing
53 changed files
with
2,782 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package boltdb | ||
|
||
import ( | ||
"context" | ||
|
||
model "github.com/ansible-semaphore/semaphore/db" | ||
) | ||
|
||
type AccessKeys struct { | ||
client *BoltdbStore | ||
} | ||
|
||
func (db *AccessKeys) List(ctx context.Context, projectID int, params model.RetrieveQueryParams) ([]*model.AccessKey, error) { | ||
return nil, nil | ||
} | ||
|
||
func (db *AccessKeys) Show(ctx context.Context, projectID, accessKeyID int) (*model.AccessKey, error) { | ||
return nil, nil | ||
} | ||
|
||
func (db *AccessKeys) Refs(ctx context.Context, projectID, accessKeyID int) (*model.ObjectReferrers, error) { | ||
return nil, nil | ||
} | ||
|
||
func (db *AccessKeys) Delete(ctx context.Context, projectID, accessKeyID int) error { | ||
return nil | ||
} | ||
|
||
func (db *AccessKeys) Create(ctx context.Context, record *model.AccessKey) error { | ||
return nil | ||
} | ||
|
||
func (db *AccessKeys) Update(ctx context.Context, record *model.AccessKey) error { | ||
return nil | ||
} | ||
|
||
func (db *AccessKeys) Rekey(ctx context.Context, oldKey string) error { | ||
return nil | ||
} |
Oops, something went wrong.