argoclient

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

argoclient

argoclient is http client for communication with argocd API.

Description

argoclient is an HTTP client generated by go-swagger for communication with ArgoCD API.

Folders client, models are autogenerated from argocd openAPI specification file swagger.yaml (taken from: https://github.com/argoproj/argo-cd/blob/master/assets/swagger.json)

Tool for autogeneration: https://github.com/go-swagger/go-swagger

Command:

swagger generate client -f swagger.yaml --with-flatten=remove-unused

The following custom changes were made in swagger.yaml to fix API errors:

  • Replaced invalid type format

before

- type: string
  format: int64

after

- type: integer
  format: int64
  • type v1Time converted to type string instead of object

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type ApplicationHTTPClient

type ApplicationHTTPClient struct {
	Client      application_service.ClientService
	AuthOptions application_service.ClientOption
}

func GetApplicationClient

func GetApplicationClient() (*ApplicationHTTPClient, error)

type RepositoryHTTPClient

type RepositoryHTTPClient struct {
	Client      repository_service.ClientService
	AuthOptions repository_service.ClientOption
}

func GetRepositoryClient

func GetRepositoryClient() (*RepositoryHTTPClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL