organisations

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetService

func SetService(svc Service)

Types

type CreateOptions added in v1.1.7

type CreateOptions struct {
	Name   string `json:"name"`
	UserID string `json:"user_id,omitempty"`
}

type DefaultService added in v1.1.7

type DefaultService struct{}

func (*DefaultService) Create added in v1.1.7

func (*DefaultService) Get added in v1.1.7

func (*DefaultService) GetByEnvironment added in v1.1.7

func (*DefaultService) GetByEnvironment(ctx context.ServiceContext, client *clients.GQLClient, env_id string) (*Organisation, error)

func (*DefaultService) GetByProject added in v1.1.11

func (*DefaultService) GetByProject(ctx context.ServiceContext, client *clients.GQLClient, project_id string) (*Organisation, error)

func (*DefaultService) GetInviteLimit added in v1.1.8

func (*DefaultService) GetInviteLimit(ctx context.ServiceContext, client *clients.GQLClient, id string) (*int, error)

func (*DefaultService) List added in v1.1.7

func (*DefaultService) UpdateInviteLimit added in v1.1.7

func (*DefaultService) UpdateInviteLimit(ctx context.ServiceContext, client *clients.GQLClient, options *UpdateInviteLimitOptions) error

type Organisation added in v1.1.7

type Organisation struct {
	ID          string    `json:"id,omitempty"`
	CreatedAt   time.Time `json:"created_at,omitempty"`
	UpdatedAt   time.Time `json:"updated_at,omitempty"`
	Name        string    `json:"name,omitempty"`
	UserID      string    `json:"user_id,omitempty"`
	InviteLimit *int      `json:"invite_limit,omitempty"`
}

type UpdateInviteLimitOptions added in v1.1.7

type UpdateInviteLimitOptions struct {
	ID               string
	IncrementLimitBy int
}

type UpdateOptions added in v1.1.7

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

type UpdateServerKeyCopyOptions added in v1.1.7

type UpdateServerKeyCopyOptions struct {
	OrgID string
	Key   string
}

Jump to

Keyboard shortcuts

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