blob: df06a7d9b31dd52eabca33bb6328307b5d17972d [file] [edit]
// Copyright 2019 Google LLC
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package pubsub
import (
"fmt"
)
const (
// TOPIC is the PubSub topic for docker image push messages.
TOPIC = "skia-docker-builds"
// The cloud project the above topic lives in.
TOPIC_PROJECT_ID = "skia-public"
)
// The type that will stored as data when publishing messages to the above topic.
type BuildInfo struct {
ImageName string `json:"image_name"`
Tag string `json:"tag"`
Repo string `json:"repo"`
}
func (b BuildInfo) String() string {
return fmt.Sprintf("%s:%s", b.ImageName, b.Tag)
}