v2wundergraphapi

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLogin = fmt.Errorf("invalid login")
)

Functions

This section is empty.

Types

type ApiDependency

type ApiDependency struct {
	Organization        string        `json:"organization"`
	Name                string        `json:"name"`
	Keywords            []string      `json:"keywords"`
	ShortDescription    string        `json:"shortDescription"`
	MarkdownDescription string        `json:"markdownDescription"`
	RepositoryURL       string        `json:"repositoryUrl"`
	SDKVersion          string        `json:"sdkVersion"`
	Definition          interface{}   `json:"definition"`
	IsPublic            bool          `json:"isPublic"`
	Placeholders        []Placeholder `json:"placeholders"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(accessToken string, baseURL string, client *http.Client, log abstractlogger.Logger) *Client

func (*Client) GetApiDependency

func (c *Client) GetApiDependency(dep string) (*ApiDependency, error)

func (*Client) GetUserInfo

func (c *Client) GetUserInfo() (*UserInfo, error)

func (*Client) PublishApiDependency

func (c *Client) PublishApiDependency(dependency ApiDependency) error

func (*Client) RegisterCliUserWithAccessToken

func (c *Client) RegisterCliUserWithAccessToken() error

type Placeholder

type Placeholder struct {
	Name     string `json:"name"`
	Optional bool   `json:"optional"`
}

type UserInfo

type UserInfo struct {
	ID          string   `json:"id"`
	Email       string   `json:"email"`
	FirstName   string   `json:"firstname"`
	LastName    string   `json:"lastname"`
	DisplayName string   `json:"displayName"`
	PictureURL  string   `json:"pictureUrl"`
	Roles       []string `json:"roles"`
}

Jump to

Keyboard shortcuts

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