provision

package
v2.2.0-RC1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package provision contains utilities for obtaining runtime provision, information -- such as pipeline options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info(ctx context.Context, endpoint string) (*pb.ProvisionInfo, error)

Info returns the runtime provisioning info for the worker.

func JSONToProto

func JSONToProto(data string) (*google_protobuf.Struct, error)

JSONToProto converts JSON-encoded pipeline options to a proto struct.

func OptionsToProto

func OptionsToProto(v interface{}) (*google_protobuf.Struct, error)

OptionsToProto converts pipeline options to a proto struct via JSON.

func ProtoToJSON

func ProtoToJSON(opt *google_protobuf.Struct) (string, error)

ProtoToJSON converts pipeline options from a proto struct to JSON.

func ProtoToOptions

func ProtoToOptions(opt *google_protobuf.Struct, v interface{}) error

ProtoToOptions converts pipeline options from a proto struct via JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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