Help us shape the future of Go! Take the 2026 Go Developer Survey

contract

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOrgAttributes

type GetOrgAttributes struct {
	GroupId    string    `json:"group_id"`
	IsPersonal bool      `json:"is_personal"`
	Name       string    `json:"name"`
	Slug       string    `json:"slug"`
	CreatedAt  time.Time `json:"created_at"`
	UpdatedAt  time.Time `json:"updated_at"`
}

type GetOrganizationResponse

type GetOrganizationResponse struct {
	Data struct {
		Id         string           `json:"id"`
		Type       string           `json:"type"`
		Attributes GetOrgAttributes `json:"attributes"`
	} `json:"data"`
	Jsonapi struct {
		Version string `json:"version"`
	} `json:"jsonapi"`
	Links struct {
		Self string `json:"self"`
	} `json:"links"`
}

type Group

type Group struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type OrgAttributes

type OrgAttributes struct {
	IsPersonal bool   `json:"is_personal"`
	Name       string `json:"name"`
	Slug       string `json:"slug"`
	GroupId    string `json:"group_id,omitempty"`
}

type OrgFeatureFlagResponse

type OrgFeatureFlagResponse struct {
	Ok          bool   `json:"ok,omitempty"`
	UserMessage string `json:"userMessage,omitempty"`
	Code        int    `json:"code,omitempty,string"`
	Error       string `json:"error,omitempty"`
}

type OrgIgnoreSettings

type OrgIgnoreSettings struct {
	ReasonRequired          bool `json:"reasonRequired,omitempty"`
	AutoApproveIgnores      bool `json:"autoApproveIgnores,omitempty"`
	ApprovalWorkflowEnabled bool `json:"approvalWorkflowEnabled,omitempty"`
}

type OrgRelationships

type OrgRelationships struct {
	MemberRole struct {
		Data struct {
			Id   string `json:"id"`
			Type string `json:"type"`
		} `json:"data"`
	} `json:"member_role"`
}

type OrgRequestAccessSettings

type OrgRequestAccessSettings struct {
	Enabled bool `json:"enabled,omitempty"`
}

type OrgSettingsResponse

type OrgSettingsResponse struct {
	Ignores       *OrgIgnoreSettings        `json:"ignores"`
	RequestAccess *OrgRequestAccessSettings `json:"requestAccess"`
}

type Organization

type Organization struct {
	Id            string           `json:"id"`
	Type          string           `json:"type"`
	Attributes    OrgAttributes    `json:"attributes"`
	Relationships OrgRelationships `json:"relationships"`
}

type OrganizationsResponse

type OrganizationsResponse struct {
	Organizations []Organization `json:"data"`
	Jsonapi       struct {
		Version string `json:"version"`
	} `json:"jsonapi"`
	Links struct {
		Self  string `json:"self"`
		First string `json:"first"`
	} `json:"links"`
}

type SelfResponse

type SelfResponse struct {
	Data SelfResponseData
}

type SelfResponseData

type SelfResponseData struct {
	Attributes SelfResponseDataAttribute `json:"attributes,omitempty"`
	Id         string                    `json:"id,omitempty"`
	Type       string                    `json:"type,omitempty"`
}

type SelfResponseDataAttribute

type SelfResponseDataAttribute struct {
	AvatarUrl         string `json:"avatar_url,omitempty"`
	DefaultOrgContext string `json:"default_org_context,omitempty"`
	Name              string `json:"name,omitempty"`
	Username          string `json:"username,omitempty"`
	Email             string `json:"email,omitempty"`
}

type UserMe

type UserMe struct {
	Id       *string `json:"id"`
	Name     *string `json:"name"`
	UserName *string `json:"username"`
	Email    *string `json:"email"`
}

Jump to

Keyboard shortcuts

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