provision

package
v2.25.0-RC1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 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) (*fnpb.ProvisionInfo, error)

Info returns the runtime provisioning info for the worker.

func JSONToProto

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

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

func OptionsToProto

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

OptionsToProto converts pipeline options to a proto struct via JSON.

func ProtoToJSON

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

ProtoToJSON converts pipeline options from a proto struct to JSON.

func ProtoToOptions

func ProtoToOptions(opt *google_pb.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