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.

Source Files