Documentation ¶
Index ¶
- type IDPatcher
- type ListK8sYaml
- type Resolver
- func (r *Resolver) DefaultHelmRelease(chartPath string) api.Spec
- func (r *Resolver) DefaultRawRelease(basePath string) api.Spec
- func (r *Resolver) ReadContentSHAForWatch(ctx context.Context, upstream string) (string, error)
- func (r *Resolver) ResolveBaseMetadata(upstream string, localPath string) (*api.ShipAppMetadata, error)
- func (r *Resolver) ResolveRelease(ctx context.Context, upstream string) (*api.Release, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDPatcher ¶
func NewIDPatcher ¶
type ListK8sYaml ¶ added in v0.22.0
type Resolver ¶
type Resolver struct { Logger log.Logger Client *replicatedapp.GraphQLClient StateManager state.Manager FS afero.Afero AppResolver replicatedapp.Resolver GitHubReleaseNotesFetcher githubclient.GitHubReleaseNotesFetcher Viper *viper.Viper NoOutro bool // contains filtered or unexported fields }
A Resolver resolves specs
func NewResolver ¶
func NewResolver( v *viper.Viper, logger log.Logger, fs afero.Afero, graphql *replicatedapp.GraphQLClient, stateManager state.Manager, ui cli.Ui, determiner apptype.Inspector, appresolver replicatedapp.Resolver, github *githubclient.GithubClient, ) *Resolver
func (*Resolver) DefaultHelmRelease ¶ added in v0.20.0
func (*Resolver) DefaultRawRelease ¶ added in v0.20.0
func (*Resolver) ReadContentSHAForWatch ¶ added in v0.16.0
read the content sha without writing anything to state
func (*Resolver) ResolveBaseMetadata ¶
func (r *Resolver) ResolveBaseMetadata(upstream string, localPath string) (*api.ShipAppMetadata, error)
ResolveBaseMetadata resolves URL, ContentSHA, and Readme for the resource
func (*Resolver) ResolveRelease ¶
A resolver turns a target string into a release.
A "target string" is something like
github.com/helm/charts/stable/nginx-ingress replicated.app/cool-ci-tool?customer_id=...&installation_id=... file::/home/bob/apps/ship.yaml file::/home/luke/my-charts/proton-torpedoes
Directories ¶
Path | Synopsis |
---|---|
local.go has methods for resolving a local ship.yaml file, and patching in api.Release info that would usually be returned by pg.replicated.com
|
local.go has methods for resolving a local ship.yaml file, and patching in api.Release info that would usually be returned by pg.replicated.com |
Click to show internal directories.
Click to hide internal directories.