provisioner

package
v0.0.2412 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2022-2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var ErrInputParam = errors.New("invalid input parameter")

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)

Jump to

Keyboard shortcuts

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