commons

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptRequestOptions

type AcceptRequestOptions struct {
	ID string `json:"id,omitempty"`
}

type CreateOptions

type CreateOptions struct {
	OrgID         string `json:"org_id,omitempty" graphql:"org_id,omitempty"`
	Scope         string `json:"scope,omitempty" graphql:"scope"`
	ReceiverEmail string `json:"receiver_email,omitempty" graphql:"receiver_email"`
}

type CreateResponse

type CreateResponse struct {
	ID string `json:"id,omitempty" graphql:"id,omitempty"`
}

type InsertOptions

type InsertOptions struct {
	UserID string `json:"user_id,omitempty"`
	OrgID  string `json:"org_id,omitempty"`
	Key    string `json:"key,omitempty"`
	Email  string `json:"email,omitempty"`
	RoleID string `json:"role_id,omitempty"`
}

type Invite

type Invite struct {
	ID        string    `json:"id,omitempty"`
	CreatedAt time.Time `json:"created_at,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`

	UserID string `json:"user_id,omitempty"`

	OrgID        string                           `json:"org_id,omitempty"`
	Organisation organisationCommons.Organisation `json:"organisation,omitempty"`

	Key   string `json:"key,omitempty"`
	Email string `json:"email,omitempty"`

	RoleID string `json:"role_id,omitempty"`

	Accepted bool `json:"accepted,omitempty"`
}

func (*Invite) Marshal

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

func (*Invite) Unmarshal

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

type ListOptions

type ListOptions struct {
	//	OrgID          string                     `json:"org_id,omitempty" graphql:"org_id"`
	Accepted bool `json:"accepted,omitempty" graphql:"accepted"`
}

type SendOptions

type SendOptions struct {
	OrgID     string
	RoleID    string
	InviterID string

	//	Decrypted organisation key.
	Key          []byte
	InviteeEmail string
}

type SendRequestOptions

type SendRequestOptions struct {
	OrgID           string `json:"org_id,omitempty"`
	RoleID          string `json:"role_id,omitempty"`
	InviteeEmail    string `json:"invitee_email,omitempty"`
	InviterPassword string `json:"inviter_password,omitempty"`
}

type SetUpdateOptions

type SetUpdateOptions struct {
	Accepted bool `json:"accepted,omitempty"`
}

type UpdateOptions

type UpdateOptions struct {
	Set SetUpdateOptions
}

Jump to

Keyboard shortcuts

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