Documentation ¶
Overview ¶
Package provision contains utilities for obtaining runtime provision, information -- such as pipeline options.
Index ¶
- func Info(ctx context.Context, endpoint string) (*pb.ProvisionInfo, error)
- func JSONToProto(data string) (*google_protobuf.Struct, error)
- func OptionsToProto(v interface{}) (*google_protobuf.Struct, error)
- func ProtoToJSON(opt *google_protobuf.Struct) (string, error)
- func ProtoToOptions(opt *google_protobuf.Struct, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.