Documentation ¶
Index ¶
- type JSONPresenter
- func (j JSONPresenter) PresentAvailableProducts(products []models.Product)
- func (j JSONPresenter) PresentCertificateAuthorities(certificateAuthorities []api.CA)
- func (j JSONPresenter) PresentCertificateAuthority(certificateAuthority api.CA)
- func (j JSONPresenter) PresentCredentialReferences(credentialReferences []string)
- func (j JSONPresenter) PresentCredentials(credentials map[string]string)
- func (j JSONPresenter) PresentDeployedProducts(deployedProducts []api.DiagnosticProduct)
- func (j JSONPresenter) PresentErrands(errands []models.Errand)
- func (j JSONPresenter) PresentInstallations(installations []models.Installation)
- func (j JSONPresenter) PresentPendingChanges(pendingChanges []api.ProductChange)
- func (j JSONPresenter) PresentStagedProducts(stagedProducts []api.DiagnosticProduct)
- type Presenter
- type TablePresenter
- func (t TablePresenter) PresentAvailableProducts(products []models.Product)
- func (t TablePresenter) PresentCertificateAuthorities(certificateAuthorities []api.CA)
- func (t TablePresenter) PresentCertificateAuthority(certificateAuthority api.CA)
- func (t TablePresenter) PresentCredentialReferences(credentialReferences []string)
- func (t TablePresenter) PresentCredentials(credentials map[string]string)
- func (t TablePresenter) PresentDeployedProducts(deployedProducts []api.DiagnosticProduct)
- func (t TablePresenter) PresentErrands(errands []models.Errand)
- func (t TablePresenter) PresentInstallations(installations []models.Installation)
- func (t TablePresenter) PresentPendingChanges(pendingChanges []api.ProductChange)
- func (t TablePresenter) PresentStagedProducts(stagedProducts []api.DiagnosticProduct)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONPresenter ¶
type JSONPresenter struct {
// contains filtered or unexported fields
}
func NewJSONPresenter ¶
func NewJSONPresenter(stdout io.Writer) JSONPresenter
func (JSONPresenter) PresentAvailableProducts ¶
func (j JSONPresenter) PresentAvailableProducts(products []models.Product)
func (JSONPresenter) PresentCertificateAuthorities ¶
func (j JSONPresenter) PresentCertificateAuthorities(certificateAuthorities []api.CA)
func (JSONPresenter) PresentCertificateAuthority ¶
func (j JSONPresenter) PresentCertificateAuthority(certificateAuthority api.CA)
func (JSONPresenter) PresentCredentialReferences ¶
func (j JSONPresenter) PresentCredentialReferences(credentialReferences []string)
func (JSONPresenter) PresentCredentials ¶
func (j JSONPresenter) PresentCredentials(credentials map[string]string)
func (JSONPresenter) PresentDeployedProducts ¶
func (j JSONPresenter) PresentDeployedProducts(deployedProducts []api.DiagnosticProduct)
func (JSONPresenter) PresentErrands ¶
func (j JSONPresenter) PresentErrands(errands []models.Errand)
func (JSONPresenter) PresentInstallations ¶
func (j JSONPresenter) PresentInstallations(installations []models.Installation)
func (JSONPresenter) PresentPendingChanges ¶
func (j JSONPresenter) PresentPendingChanges(pendingChanges []api.ProductChange)
func (JSONPresenter) PresentStagedProducts ¶
func (j JSONPresenter) PresentStagedProducts(stagedProducts []api.DiagnosticProduct)
type Presenter ¶
type Presenter interface { PresentAvailableProducts([]models.Product) PresentCertificateAuthorities([]api.CA) PresentCertificateAuthority(api.CA) PresentCredentialReferences([]string) PresentCredentials(map[string]string) PresentDeployedProducts([]api.DiagnosticProduct) PresentErrands([]models.Errand) PresentInstallations([]models.Installation) PresentPendingChanges([]api.ProductChange) PresentStagedProducts([]api.DiagnosticProduct) }
type TablePresenter ¶
type TablePresenter struct {
// contains filtered or unexported fields
}
func NewTablePresenter ¶
func NewTablePresenter(tableWriter tableWriter) TablePresenter
func (TablePresenter) PresentAvailableProducts ¶
func (t TablePresenter) PresentAvailableProducts(products []models.Product)
func (TablePresenter) PresentCertificateAuthorities ¶
func (t TablePresenter) PresentCertificateAuthorities(certificateAuthorities []api.CA)
func (TablePresenter) PresentCertificateAuthority ¶
func (t TablePresenter) PresentCertificateAuthority(certificateAuthority api.CA)
func (TablePresenter) PresentCredentialReferences ¶
func (t TablePresenter) PresentCredentialReferences(credentialReferences []string)
func (TablePresenter) PresentCredentials ¶
func (t TablePresenter) PresentCredentials(credentials map[string]string)
func (TablePresenter) PresentDeployedProducts ¶
func (t TablePresenter) PresentDeployedProducts(deployedProducts []api.DiagnosticProduct)
func (TablePresenter) PresentErrands ¶
func (t TablePresenter) PresentErrands(errands []models.Errand)
func (TablePresenter) PresentInstallations ¶
func (t TablePresenter) PresentInstallations(installations []models.Installation)
func (TablePresenter) PresentPendingChanges ¶
func (t TablePresenter) PresentPendingChanges(pendingChanges []api.ProductChange)
func (TablePresenter) PresentStagedProducts ¶
func (t TablePresenter) PresentStagedProducts(stagedProducts []api.DiagnosticProduct)
Click to show internal directories.
Click to hide internal directories.