convert

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotationsToJSON

func AnnotationsToJSON(annotations map[string]string) models.ChartMap

func ChartToJSON

func ChartToJSON(chart *chart.Chart) *models.ChartChart

func ConfigToJSON

func ConfigToJSON(cfg *chart.Config) *models.ChartConfig

func HooksToJSON

func HooksToJSON(hks []*release.Hook) (models.ReleaseReleaseHooks, error)

func InfoToJSON

func InfoToJSON(info *release.Info) (*models.ReleaseInfo, error)

func IsTimeValid

func IsTimeValid(time string) bool

func MaintainersToJSON

func MaintainersToJSON(mainList []*chart.Maintainer) []*models.ChartMaintainer

func MetadataToJSON

func MetadataToJSON(meta *chart.Metadata) *models.ChartMetadata

TODO Annotations

func OptikonToRegCluster

CONVERT FUNCTIONS: optikon API --> Cluster registry Note that i'm using the provided Setter functions bc. the v1 object metadata is

func ProtoBufToJSON

func ProtoBufToJSON(filesList []*any.Any) []*models.ProtobufAny

func RegToOptikonClusterSpec

TODO - implement. this lists auth info for cluster + K8s API endpoints

func ReleaseToJSON

func ReleaseToJSON(rel *release.Release) (*models.ReleaseRelease, error)

Takes GRPC release structure and converts it to opitkon API structure

func StatusToJSON

func StatusToJSON(status *release.Status) (*models.ReleaseStatus, error)

func TemplateToJSON

func TemplateToJSON(tempList []*chart.Template) []*models.ChartTemplate

func TestRunsToJSON

func TestRunsToJSON(testRun []*release.TestRun) ([]*models.ReleaseTestRun, error)

TestRunsToJSON - this is a comment

func TestSuiteToJSON

func TestSuiteToJSON(testSuite *release.TestSuite) (*models.ReleaseTestSuite, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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