Documentation
¶
Index ¶
- func BuiltIn() catalog.BuiltIn
- type Config
- type Plugin
- func (p *Plugin) Close() error
- func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *Plugin) PublishBundle(ctx context.Context, req *bundlepublisherv1.PublishBundleRequest) (*bundlepublisherv1.PublishBundleResponse, error)
- func (p *Plugin) SetLogger(log hclog.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
BucketName string `hcl:"bucket_name" json:"bucket_name"`
ObjectName string `hcl:"object_name" json:"object_name"`
Format string `hcl:"format" json:"format"`
ServiceAccountFile string `hcl:"service_account_file" json:"service_account_file"`
// contains filtered or unexported fields
}
Config holds the configuration of the plugin.
type Plugin ¶
type Plugin struct {
bundlepublisherv1.UnsafeBundlePublisherServer
configv1.UnsafeConfigServer
// contains filtered or unexported fields
}
Plugin is the main representation of this bundle publisher plugin.
func (*Plugin) Configure ¶
func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
Configure configures the plugin.
func (*Plugin) PublishBundle ¶
func (p *Plugin) PublishBundle(ctx context.Context, req *bundlepublisherv1.PublishBundleRequest) (*bundlepublisherv1.PublishBundleResponse, error)
PublishBundle puts the bundle in the configured GCS bucket and object name.
Click to show internal directories.
Click to hide internal directories.