contract

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 GetOrgRelationships added in v0.52.0

type GetOrgRelationships struct {
	Tenant struct {
		Data struct {
			Id string `json:"id"`
		} `json:"data"`
	} `json:"tenant"`
}

type GetOrganizationResponse

type GetOrganizationResponse struct {
	Data struct {
		Id            string              `json:"id"`
		Type          string              `json:"type"`
		Attributes    GetOrgAttributes    `json:"attributes"`
		Relationships GetOrgRelationships `json:"relationships"`
	} `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 MachineSelfResponse added in v0.52.0

type MachineSelfResponse struct {
	Data struct {
		Attributes struct {
			TenantId string `json:"tenant_id"`
		} `json:"attributes"`
	} `json:"data"`
}

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