Documentation ¶
Index ¶
- func WithMockCluster(block func(mock *MockCluster))
- type Application
- type Cluster
- type Config
- type Deployer
- type Functions
- type MockCluster
- func (cluster *MockCluster) DeployRegistryCredentials() error
- func (cluster *MockCluster) DeployService(service Service) (string, error)
- func (cluster *MockCluster) DeployServices(services []Service) (string, error)
- func (cluster *MockCluster) Namespace() string
- func (cluster *MockCluster) SetDryRun()
- func (cluster *MockCluster) SetNoDryRun()
- type MockConfig
- type Registry
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMockCluster ¶
func WithMockCluster(block func(mock *MockCluster))
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application representa a Knative application that can be deployed to a cluster.
func (*Application) DeployDryRun ¶
func (app *Application) DeployDryRun() (string, error)
type Cluster ¶
type Cluster interface { SetDryRun() SetNoDryRun() Namespace() string DeployRegistryCredentials() error DeployService(service Service) (string, error) DeployServices(services []Service) (string, error) }
func NewCluster ¶
type Config ¶
type Config interface { Namespace() string // Kubernetes namespace we want to interact with KubeConfig() string // Path to a cluster client config `.kubeconfig` Registry() Registry // Main registry we want to pull services from }
Config is an interface that provides a cluster access details
type Deployer ¶
type Deployer serverless.Deployer
func NewApplicationDeployer ¶
func NewFunctionsDeployer ¶
func NewFunctionsDeployer(manifest serverless.Manifest, config Config) (Deployer, error)
type Functions ¶
type Functions struct {
// contains filtered or unexported fields
}
Functions represent a set of Knative services and a root service used to deploy functions to a cluster
func (*Functions) DeployDryRun ¶
func (*Functions) ToServices ¶
type MockCluster ¶
func (*MockCluster) DeployRegistryCredentials ¶
func (cluster *MockCluster) DeployRegistryCredentials() error
func (*MockCluster) DeployService ¶
func (cluster *MockCluster) DeployService(service Service) (string, error)
func (*MockCluster) DeployServices ¶
func (cluster *MockCluster) DeployServices(services []Service) (string, error)
func (*MockCluster) Namespace ¶
func (cluster *MockCluster) Namespace() string
func (*MockCluster) SetDryRun ¶
func (cluster *MockCluster) SetDryRun()
func (*MockCluster) SetNoDryRun ¶
func (cluster *MockCluster) SetNoDryRun()
type MockConfig ¶
func (*MockConfig) KubeConfig ¶
func (config *MockConfig) KubeConfig() string
func (*MockConfig) Namespace ¶
func (config *MockConfig) Namespace() string
func (*MockConfig) Registry ¶
func (config *MockConfig) Registry() Registry
type Registry ¶
type Registry struct { Host string // Repository hostname Username string // Access username Password string // Access password Repository string // Default repository (includes the hostname) }
Registry represents Knative entry describing a container registry
func (Registry) HasCredentials ¶
Click to show internal directories.
Click to hide internal directories.