provider

package
v0.0.0-...-3e47104 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalPlaylist

func MarshalPlaylist(p Playlist) (*structpb.Struct, error)

func Serve

func Serve(providerName, version string, schema string)

Serve launches the gRPC server for the resource provider.

Types

type Playlist

type Playlist struct {
	PlaylistID  string   `json:"playlistId,omitempty"`
	ChannelID   string   `json:"channelId,omitempty"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Visibility  string   `json:"visibility"`
	Videos      []string `json:"videos"`
}

func UnmarshalPlaylist

func UnmarshalPlaylist(props *structpb.Struct) (Playlist, error)

type YamlTubeConfig

type YamlTubeConfig struct {
	GoogleAppCreds     string
	GoogleClientSecret string
}

func ToConfig

Jump to

Keyboard shortcuts

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