Documentation
¶
Index ¶
- Variables
- func LiveObjects(resources []*argoappv1.ResourceDiff) ([]*unstructured.Unstructured, error)
- func Plan(ctx context.Context, argoSettings *settings.Settings, ...) (string, bool, error)
- func UnmarshalToUnstructured(resource string) (*unstructured.Unstructured, error)
- type ApplicationManifestQuery
- type ApplicationSyncRequest
- type ApplicationsClient
- func (c *ApplicationsClient) Apply(app string, revision string) (string, error)
- func (c *ApplicationsClient) Get(name string) (*argoappv1.Application, error)
- func (c *ApplicationsClient) GetManifest(name string, revision string) (*apiclient.ManifestResponse, error)
- func (c *ApplicationsClient) GetSettings() (settings.Settings, error)
- func (c *ApplicationsClient) List() (*argoappv1.ApplicationList, error)
- func (c *ApplicationsClient) ManagedResources(app string) (*application.ManagedResourcesResponse, error)
- func (c *ApplicationsClient) PutApplicationSpec(name string, spec *argoappv1.ApplicationSpec) error
- type ApplyClient
- type Client
- type Locker
- type MockClient
- type PlanClient
- type Planner
- type ResourceKey
Constants ¶
This section is empty.
Variables ¶
View Source
var LockKey = "corymurphy.io/argobot/lockedby"
Functions ¶
func LiveObjects ¶
func LiveObjects(resources []*argoappv1.ResourceDiff) ([]*unstructured.Unstructured, error)
func Plan ¶
func Plan(ctx context.Context, argoSettings *settings.Settings, app *argoappv1.Application, resources *application.ManagedResourcesResponse, target *apiclient.ManifestResponse, revision string, log logging.SimpleLogging) (string, bool, error)
func UnmarshalToUnstructured ¶
func UnmarshalToUnstructured(resource string) (*unstructured.Unstructured, error)
Types ¶
type ApplicationManifestQuery ¶
type ApplicationManifestQuery struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Revision *string `protobuf:"bytes,2,opt,name=revision" json:"revision,omitempty"`
AppNamespace *string `protobuf:"bytes,3,opt,name=appNamespace" json:"appNamespace,omitempty"`
Project *string `protobuf:"bytes,4,opt,name=project" json:"project,omitempty"`
SourcePositions []int64 `protobuf:"varint,5,rep,name=sourcePositions" json:"sourcePositions,omitempty"`
Revisions []string `protobuf:"bytes,6,rep,name=revisions" json:"revisions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
type ApplicationSyncRequest ¶
type ApplicationsClient ¶
func (*ApplicationsClient) Apply ¶
func (c *ApplicationsClient) Apply(app string, revision string) (string, error)
func (*ApplicationsClient) Get ¶
func (c *ApplicationsClient) Get(name string) (*argoappv1.Application, error)
func (*ApplicationsClient) GetManifest ¶
func (c *ApplicationsClient) GetManifest(name string, revision string) (*apiclient.ManifestResponse, error)
func (*ApplicationsClient) GetSettings ¶
func (c *ApplicationsClient) GetSettings() (settings.Settings, error)
func (*ApplicationsClient) List ¶
func (c *ApplicationsClient) List() (*argoappv1.ApplicationList, error)
func (*ApplicationsClient) ManagedResources ¶
func (c *ApplicationsClient) ManagedResources(app string) (*application.ManagedResourcesResponse, error)
func (*ApplicationsClient) PutApplicationSpec ¶
func (c *ApplicationsClient) PutApplicationSpec(name string, spec *argoappv1.ApplicationSpec) error
type ApplyClient ¶
type Locker ¶
type Locker struct {
ArgoClient *ApplicationsClient
Log logging.SimpleLogging
}
func NewLocker ¶
func NewLocker(client *ApplicationsClient, log logging.SimpleLogging) *Locker
type MockClient ¶
type Planner ¶
type Planner struct {
ArgoClient *ApplicationsClient
Log logging.SimpleLogging
}
func NewPlanner ¶
func NewPlanner(client *ApplicationsClient, log logging.SimpleLogging) *Planner
Click to show internal directories.
Click to hide internal directories.