Documentation
¶
Overview ¶
Copyright 2022-2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IProvisioner ¶
type IProvisioner interface {
GetVTSState() (*proto.ServiceState, error)
IsSupportedMediaType(mt string) (bool, error)
SupportedMediaTypes() ([]string, error)
SubmitEndorsements(tenantID string, data []byte, mt string) error
}
func New ¶
func New(vtsClient vtsclient.IVTSClient) IProvisioner
type Provisioner ¶
type Provisioner struct {
VTSClient vtsclient.IVTSClient
}
func (*Provisioner) GetVTSState ¶
func (p *Provisioner) GetVTSState() (*proto.ServiceState, error)
func (*Provisioner) IsSupportedMediaType ¶
func (p *Provisioner) IsSupportedMediaType(mt string) (bool, error)
func (*Provisioner) SubmitEndorsements ¶
func (p *Provisioner) SubmitEndorsements(tenantID string, data []byte, mt string) error
func (*Provisioner) SupportedMediaTypes ¶
func (p *Provisioner) SupportedMediaTypes() ([]string, error)
Click to show internal directories.
Click to hide internal directories.