projects

package
v1.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetService added in v1.1.7

func SetService(svc Service)

Types

type CreateOptions

type CreateOptions struct {
	OrgID string `json:"org_id"`
	Name  string `json:"name"`
}

type DefaultService added in v1.1.7

type DefaultService struct{}

func (*DefaultService) Create added in v1.1.7

func (*DefaultService) Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Project, error)

Create a new project

func (*DefaultService) Delete added in v1.1.7

Delete a project by ID

func (*DefaultService) Get added in v1.1.7

Get a project by ID

func (*DefaultService) GetOrganisation added in v1.1.11

Get an organisation by it's project ID

func (*DefaultService) List added in v1.1.7

func (*DefaultService) List(ctx context.ServiceContext, client *clients.GQLClient, options *ListOptions) ([]*Project, error)

List projects

func (*DefaultService) Update added in v1.1.7

func (*DefaultService) Update(ctx context.ServiceContext, client *clients.GQLClient, id string, options *UpdateOptions) (*Project, error)

Update a project by ID

type ListOptions

type ListOptions struct {
	OrgID string `json:"org_id"`
}

type Project

type Project struct {
	ID           string                     `json:"id"`
	CreatedAt    time.Time                  `json:"created_at,omitempty"`
	UpdatedAt    time.Time                  `json:"updated_at,omitempty"`
	Name         string                     `json:"name,omitempty"`
	OrgID        string                     `json:"org_id,omitempty"`
	Organisation organisations.Organisation `json:"organisation,omitempty"`
	UserID       string                     `json:"user_id"`
}

type UpdateOptions

type UpdateOptions struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL