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, datacenterInput *apicontracts.DatacenterModel, ...) (*apicontracts.Datacenter, error)
- func FindByName(ctx context.Context, name string) (*apicontracts.Datacenter, error)
- func GetAllByUser(ctx context.Context) (*[]apicontracts.Datacenter, error)
- func GetById(ctx context.Context, id string) (*apicontracts.Datacenter, error)
- func GetTotalCount(ctx context.Context) (int64, error)
- func Update(ctx context.Context, datacenterInput *apicontracts.DatacenterModel, ...) (*apicontracts.Datacenter, error)
Constants ¶
View Source
const ( CollectionName = "datacenters" ClusterCollectionName = "clusters" )
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, datacenterInput *apicontracts.DatacenterModel, user *identitymodels.User) (*apicontracts.Datacenter, error)
func FindByName ¶
func FindByName(ctx context.Context, name string) (*apicontracts.Datacenter, error)
func GetAllByUser ¶
func GetAllByUser(ctx context.Context) (*[]apicontracts.Datacenter, error)
func GetById ¶
func GetById(ctx context.Context, id string) (*apicontracts.Datacenter, error)
func Update ¶
func Update(ctx context.Context, datacenterInput *apicontracts.DatacenterModel, user *identitymodels.User) (*apicontracts.Datacenter, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.