Documentation ¶
Overview ¶
Package provision contains utilities for obtaining runtime provision, information -- such as pipeline options.
Index ¶
- func Info(ctx context.Context, endpoint string) (*fnpb.ProvisionInfo, error)
- func JSONToProto(data string) (*google_pb.Struct, error)
- func OptionsToProto(v interface{}) (*google_pb.Struct, error)
- func ProtoToJSON(opt *google_pb.Struct) (string, error)
- func ProtoToOptions(opt *google_pb.Struct, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Info ¶
Info returns the runtime provisioning info for the worker.
func JSONToProto ¶
JSONToProto converts JSON-encoded pipeline options to a proto struct.
func OptionsToProto ¶
OptionsToProto converts pipeline options to a proto struct via JSON.
func ProtoToJSON ¶
ProtoToJSON converts pipeline options from a proto struct to JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.