organisations

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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

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) 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"`

	ServerKey string `json:"server_copy,omitempty"`
}

func (*Organisation) Marshal added in v1.1.7

func (w *Organisation) Marshal() ([]byte, error)

func (*Organisation) Unmarshal added in v1.1.7

func (w *Organisation) Unmarshal(data []byte) error

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