package convert
import "github.com/docker/compose-on-kubernetes/internal/convert"
Index ¶
- func IsStackDirty(stack *latest.Stack) bool
- func StackToStack(stack latest.Stack, strategy ServiceStrategy, original *stackresources.StackState) (*stackresources.StackState, error)
- type ServiceStrategy
Functions ¶
func IsStackDirty ¶
IsStackDirty indicates if the stack is pending reconciliation
func StackToStack ¶
func StackToStack(stack latest.Stack, strategy ServiceStrategy, original *stackresources.StackState) (*stackresources.StackState, error)
StackToStack converts a latest.Stack to a StackDefinition
Types ¶
type ServiceStrategy ¶
type ServiceStrategy interface {
// contains filtered or unexported methods
}
ServiceStrategy defines a strategy to use for converting stacks ports to kubernetes services
func ServiceStrategyFor ¶
func ServiceStrategyFor(publishServiceType apiv1.ServiceType) (ServiceStrategy, error)
ServiceStrategyFor returns the correct strategy for a desired publishServiceType
Source Files ¶
daemon-set.go deployment.go duration.go placement.go pod.go pvc.go service.go stack.go stateful-set.go volumes.go
- Version
- v0.5.0 (latest)
- Published
- Jan 28, 2022
- Platform
- linux/amd64
- Imports
- 20 packages
- Last checked
- 5 hours ago –
Tools for package owners.