Documentation
¶
Index ¶
- func BuiltIn() catalog.BuiltIn
- type Config
- type Plugin
- func (p *Plugin) Configure(_ 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)
- func (p *Plugin) Validate(_ context.Context, req *configv1.ValidateRequest) (*configv1.ValidateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
StorageAccountName string `hcl:"storage_account_name" json:"storage_account_name"`
StorageAccountKey string `hcl:"storage_account_key" json:"storage_account_key"`
ServiceEndpoint string `hcl:"service_endpoint" json:"service_endpoint"`
ContainerName string `hcl:"container_name" json:"container_name"`
BlobName string `hcl:"blob_name" json:"blob_name"`
Format string `hcl:"format" json:"format"`
TenantID string `hcl:"tenant_id" json:"tenant_id"`
AppID string `hcl:"app_id" json:"app_id"`
AppSecret string `hcl:"app_secret" json:"app_secret"`
RefreshHint string `hcl:"refresh_hint" json:"refresh_hint"`
// 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(_ 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 Azure Blob Storage container.
func (*Plugin) Validate ¶
func (p *Plugin) Validate(_ context.Context, req *configv1.ValidateRequest) (*configv1.ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.