cloud

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 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 Client

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

func NewClient

func NewClient() Client

NewClient - create a new backend client

func (*Client) GetContentItem

func (client *Client) GetContentItem(id string, credentials creds.Credentials) (ContentItem, bool, error)

GetContentItem - Get a content item

func (*Client) GetContentItems

func (client *Client) GetContentItems(credentials creds.Credentials) ([]ContentItem, error)

GetContentItems - Returns a list of CDS content items

func (*Client) VerifyCredentials

func (client *Client) VerifyCredentials(credentials creds.Credentials) (bool, error)

VerifyCredentials - return true if the token is valid and false otherwise.

type ContentItem

type ContentItem struct {
	ID             string
	Name           string
	Description    string
	Type           string
	Version        string
	Platforms      []string
	CanBeInstalled bool
	Filename       string
	DownloadURL    string
}

ContentItem - description of one content item

Jump to

Keyboard shortcuts

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