Documentation
¶
Index ¶
- func Delete(ctx context.ServiceContext, client *clients.GQLClient, id string) error
- func List(ctx context.ServiceContext, client *clients.GQLClient, options *ListOptions) (*[]Project, error)
- type CreateOptions
- type ListOptions
- type Project
- func Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Project, error)
- func Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Project, error)
- func Update(ctx context.ServiceContext, client *clients.GQLClient, id string, ...) (*Project, error)
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(ctx context.ServiceContext, client *clients.GQLClient, options *ListOptions) (*[]Project, error)
List projects
Types ¶
type CreateOptions ¶
type ListOptions ¶
type ListOptions struct {
OrgID string `graphql:"org_id" json:"org_id"`
}
type Project ¶
type Project struct {
ID string `json:"id" graphql:"id"`
CreatedAt time.Time `json:"created_at,omitempty" graphql:"created_at"`
UpdatedAt time.Time `json:"updated_at,omitempty" graphql:"updated_at"`
Name string `json:"name,omitempty" graphql:"name"`
OrgID string `json:"org_id,omitempty" graphql:"org_id"`
UserID string `json:"user_id"`
}
func Create ¶
func Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Project, error)
Create a new workspace
func Update ¶
func Update(ctx context.ServiceContext, client *clients.GQLClient, id string, options *UpdateOptions) (*Project, error)
Update a workspace by ID
type UpdateOptions ¶
type UpdateOptions struct {
Name string `json:"name" graphql:"name"`
}
Click to show internal directories.
Click to hide internal directories.