controllers

package
v0.0.0-...-a1f4ec6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKerbal

func CreateKerbal(ctx context.Context, items KerbalItems) (string, error)

CreateKerbal takes a list of items and generates avatar

Types

type Item

type Item string

Item is a bucket asset

type Items

type Items map[string][]Item

Items includes all assets organized by categories

func GetItems

func GetItems(ctx context.Context) (Items, error)

GetItems returns a list of s3 item assets

func NewItems

func NewItems(objects []*services.S3Object) Items

NewItems converts s3 objects into items

type KerbalItems

type KerbalItems map[string]string

KerbalItems is a list of avatar items

func (KerbalItems) Validate

func (k KerbalItems) Validate() error

Validate checks for required items

Jump to

Keyboard shortcuts

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