Documentation ¶
Overview ¶
TODO: This library is imported from ror, should determine if its a public library or not
Index ¶
- Constants
- func Create(ctx context.Context, workspaceInput *apicontracts.Workspace) (*apicontracts.Workspace, error)
- func FindByName(ctx context.Context, name string) (*apicontracts.Workspace, error)
- func GetAllByIdentity(ctx context.Context) (*[]apicontracts.Workspace, error)
- func GetById(ctx context.Context, id string) (*apicontracts.Workspace, error)
- func GetByName(ctx context.Context, workspaceName string) (*apicontracts.Workspace, error)
- func GetTotalCount(ctx context.Context) (int64, error)
- func Update(ctx context.Context, input *mongoTypes.MongoWorkspace, id string) (*mongoTypes.MongoWorkspace, *mongoTypes.MongoWorkspace, error)
Constants ¶
View Source
const ( CollectionName = "workspaces" ClustersCollectionName = "clusters" )
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, workspaceInput *apicontracts.Workspace) (*apicontracts.Workspace, error)
func FindByName ¶
func GetAllByIdentity ¶
func GetAllByIdentity(ctx context.Context) (*[]apicontracts.Workspace, error)
func Update ¶
func Update(ctx context.Context, input *mongoTypes.MongoWorkspace, id string) (*mongoTypes.MongoWorkspace, *mongoTypes.MongoWorkspace, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.