Documentation ¶
Index ¶
Constants ¶
View Source
const MetadataEndpoint = "http://metadata/computeMetadata/v1/instance/attributes/cluster-name"
MetadataEndpoint - default metadata server for gcloud pubsub
Variables ¶
This section is empty.
Functions ¶
func WithKeepAliveDialer ¶
func WithKeepAliveDialer() grpc.DialOption
WithKeepAliveDialer - required so connections aren't dropped https://github.com/GoogleCloudPlatform/google-cloud-go/issues/500
Types ¶
type DefaultManager ¶
type DefaultManager struct {
// contains filtered or unexported fields
}
DefaultManager - subscription manager
func NewDefaultManager ¶
func NewDefaultManager(clusterName, projectID string, providers provider.Providers, subClient Subscriber) *DefaultManager
NewDefaultManager - creates new pubsub manager to create subscription for deployments
type Message ¶
type Message struct { Action string `json:"action,omitempty"` Digest string `json:"digest"` Tag string `json:"tag,omitempty"` }
Message - expected message from gcr
type PubsubSubscriber ¶
type PubsubSubscriber struct {
// contains filtered or unexported fields
}
PubsubSubscriber is Google Cloud pubsub based subscriber
func NewPubsubSubscriber ¶
func NewPubsubSubscriber(opts *Opts) (*PubsubSubscriber, error)
NewPubsubSubscriber - create new pubsub subscriber
Click to show internal directories.
Click to hide internal directories.