linear

package
v0.0.0-...-6156683 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueCreateIssueCreateIssuePayload

type IssueCreateIssueCreateIssuePayload struct {
	// Whether the operation was successful.
	Success bool `json:"success"`
	// The issue that was created or updated.
	Issue IssueCreateIssueCreateIssuePayloadIssue `json:"issue"`
}

IssueCreateIssueCreateIssuePayload includes the requested fields of the GraphQL type IssuePayload.

func (*IssueCreateIssueCreateIssuePayload) GetIssue

GetIssue returns IssueCreateIssueCreateIssuePayload.Issue, and is useful for accessing the field via an interface.

func (*IssueCreateIssueCreateIssuePayload) GetSuccess

func (v *IssueCreateIssueCreateIssuePayload) GetSuccess() bool

GetSuccess returns IssueCreateIssueCreateIssuePayload.Success, and is useful for accessing the field via an interface.

type IssueCreateIssueCreateIssuePayloadIssue

type IssueCreateIssueCreateIssuePayloadIssue struct {
	// The unique identifier of the entity.
	Id string `json:"id"`
	// The issue's title.
	Title string `json:"title"`
}

IssueCreateIssueCreateIssuePayloadIssue includes the requested fields of the GraphQL type Issue. The GraphQL type's documentation follows.

An issue.

func (*IssueCreateIssueCreateIssuePayloadIssue) GetId

GetId returns IssueCreateIssueCreateIssuePayloadIssue.Id, and is useful for accessing the field via an interface.

func (*IssueCreateIssueCreateIssuePayloadIssue) GetTitle

GetTitle returns IssueCreateIssueCreateIssuePayloadIssue.Title, and is useful for accessing the field via an interface.

type IssueCreateResponse

type IssueCreateResponse struct {
	// Creates a new issue.
	IssueCreate IssueCreateIssueCreateIssuePayload `json:"issueCreate"`
}

IssueCreateResponse is returned by IssueCreate on success.

func IssueCreate

func IssueCreate(
	ctx context.Context,
	client graphql.Client,
	title string,
	body string,
	teamId string,
) (*IssueCreateResponse, error)

func (*IssueCreateResponse) GetIssueCreate

GetIssueCreate returns IssueCreateResponse.IssueCreate, and is useful for accessing the field via an interface.

type TeamsResponse

type TeamsResponse struct {
	// All teams whose issues can be accessed by the user. This might be different from `administrableTeams`, which also includes teams whose settings can be changed by the user.
	Teams TeamsTeamsTeamConnection `json:"teams"`
}

TeamsResponse is returned by Teams on success.

func Teams

func Teams(
	ctx context.Context,
	client graphql.Client,
) (*TeamsResponse, error)

func (*TeamsResponse) GetTeams

GetTeams returns TeamsResponse.Teams, and is useful for accessing the field via an interface.

type TeamsTeamsTeamConnection

type TeamsTeamsTeamConnection struct {
	Nodes []TeamsTeamsTeamConnectionNodesTeam `json:"nodes"`
}

TeamsTeamsTeamConnection includes the requested fields of the GraphQL type TeamConnection.

func (*TeamsTeamsTeamConnection) GetNodes

GetNodes returns TeamsTeamsTeamConnection.Nodes, and is useful for accessing the field via an interface.

type TeamsTeamsTeamConnectionNodesTeam

type TeamsTeamsTeamConnectionNodesTeam struct {
	// The unique identifier of the entity.
	Id string `json:"id"`
	// The team's name.
	Name string `json:"name"`
}

TeamsTeamsTeamConnectionNodesTeam includes the requested fields of the GraphQL type Team. The GraphQL type's documentation follows.

An organizational unit that contains issues.

func (*TeamsTeamsTeamConnectionNodesTeam) GetId

GetId returns TeamsTeamsTeamConnectionNodesTeam.Id, and is useful for accessing the field via an interface.

func (*TeamsTeamsTeamConnectionNodesTeam) GetName

GetName returns TeamsTeamsTeamConnectionNodesTeam.Name, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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