Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDeleteDeployment

func RenderDeleteDeployment(deploymentName, namespace, environmentName string) []core.ResourceFile

func RenderDeployment

func RenderDeployment(deployment *core.DeploymentConfig, deploymentResources ...KubeResource) ([]core.ResourceFile, error)

    RenderDeployment renders resources that target a deployment's git folder

    func RenderGeneric

    func RenderGeneric(environmentName string, resources ...KubeResource) ([]core.ResourceFile, error)

      RenderGeneric is used for generic resources (e.g. riser app namespaces). They will be placed in the root of the namespaced folder.

      func RenderRoute

      func RenderRoute(deploymentName, namespace, environmentName string, resource KubeResource) ([]core.ResourceFile, error)

        RenderRoute renders just the route resource.

        func RenderSealedSecret

        func RenderSealedSecret(app, environmentName string, sealedSecret *resources.SealedSecret) ([]core.ResourceFile, error)

        Types

        type Committer

        type Committer interface {
        	Commit(message string, files []core.ResourceFile) error
        }

        type DryRunComitter

        type DryRunComitter struct {
        	Commits []DryRunCommit
        }

        func NewDryRunCommitter

        func NewDryRunCommitter() *DryRunComitter

        func (*DryRunComitter) Commit

        func (committer *DryRunComitter) Commit(message string, files []core.ResourceFile) error

        type DryRunCommit

        type DryRunCommit struct {
        	Message string
        	Files   []core.ResourceFile
        }

        type FileCommitter

        type FileCommitter struct {
        	// contains filtered or unexported fields
        }

        func NewFileCommitter

        func NewFileCommitter(basePath string) *FileCommitter

        func (*FileCommitter) Commit

        func (committer *FileCommitter) Commit(message string, files []core.ResourceFile) error

        type GitCommitter

        type GitCommitter struct {
        	// contains filtered or unexported fields
        }

        func NewGitCommitter

        func NewGitCommitter(gitRepo git.Repo) *GitCommitter

        func (*GitCommitter) Commit

        func (committer *GitCommitter) Commit(message string, files []core.ResourceFile) error

          Commit commits state changes to the state repo. Commits are authoritative i.e. they represent the absolute desired state. No merging takes place for riser managed resources.

          type KubeResource

          type KubeResource interface {
          	GetName() string
          	GetNamespace() string
          	GetObjectKind() schema.ObjectKind
          }

          Directories

          Path Synopsis
          KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).
          KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).