Documentation ¶
Index ¶
- Constants
- type Client
- type DefaultClient
- func (c *DefaultClient) CheckGitBundle(namespace, name, ref, revision string) (bool, error)
- func (c *DefaultClient) GetLogs(namespace string, layer string, run string, attempt string) ([]string, error)
- func (c *DefaultClient) GetPlan(namespace string, layer string, run string, attempt string, format string) ([]byte, error)
- func (c *DefaultClient) PutGitBundle(namespace, name, ref, revision string, bundle []byte) error
- func (c *DefaultClient) PutLogs(namespace string, layer string, run string, attempt string, content []byte) error
- func (c *DefaultClient) PutPlan(namespace string, layer string, run string, attempt string, format string, ...) error
- type MockClient
- func (c *MockClient) CheckGitBundle(namespace, name, ref, revision string) (bool, error)
- func (c *MockClient) GetAttempts(namespace string, layer string, run string) (int, error)
- func (c *MockClient) GetLogs(namespace string, layer string, run string, attempt string) ([]string, error)
- func (c *MockClient) GetPlan(namespace string, layer string, run string, attempt string, format string) ([]byte, error)
- func (c *MockClient) PutGitBundle(namespace, name, ref, revision string, bundle []byte) error
- func (c *MockClient) PutLogs(namespace string, layer string, run string, attempt string, content []byte) error
- func (c *MockClient) PutPlan(namespace string, layer string, run string, attempt string, format string, ...) error
Constants ¶
View Source
const (
DefaultTokenPath = "/var/run/secrets/token/burrito"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetPlan(namespace string, layer string, run string, attempt string, format string) ([]byte, error) PutPlan(namespace string, layer string, run string, attempt string, format string, content []byte) error GetLogs(namespace string, layer string, run string, attempt string) ([]string, error) PutLogs(namespace string, layer string, run string, attempt string, content []byte) error PutGitBundle(namespace, name, ref, revision string, bundle []byte) error CheckGitBundle(namespace, name, ref, revision string) (bool, error) }
type DefaultClient ¶
type DefaultClient struct { Hostname string // contains filtered or unexported fields }
func NewDefaultClient ¶
func NewDefaultClient(config config.DatastoreConfig) *DefaultClient
func (*DefaultClient) CheckGitBundle ¶ added in v0.6.0
func (c *DefaultClient) CheckGitBundle(namespace, name, ref, revision string) (bool, error)
func (*DefaultClient) PutGitBundle ¶ added in v0.6.0
func (c *DefaultClient) PutGitBundle(namespace, name, ref, revision string, bundle []byte) error
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient ¶
func NewMockClient() *MockClient
func (*MockClient) CheckGitBundle ¶ added in v0.6.0
func (c *MockClient) CheckGitBundle(namespace, name, ref, revision string) (bool, error)
func (*MockClient) GetAttempts ¶
func (*MockClient) PutGitBundle ¶ added in v0.6.0
func (c *MockClient) PutGitBundle(namespace, name, ref, revision string, bundle []byte) error
Click to show internal directories.
Click to hide internal directories.