name

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package name deals with parsing and formatting resource names used in the Grafeas API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNote

func FormatNote(pID, nID string) string

FormatNote formats the specified project ID and note ID into a note resource name.

func FormatOccurrence

func FormatOccurrence(pID, oID string) string

FormatOccurrence formats the specified project ID and occurrence ID into an occurrence resource name.

func FormatProject

func FormatProject(pID string) string

FormatProject formats the specified project ID into a project resource name.

func ParseNote

func ParseNote(name string) (string, string, error)

ParseNote parses the project ID and note ID from a note resource name.

func ParseOccurrence

func ParseOccurrence(name string) (string, string, error)

ParseOccurrence parses the project ID and occurrence ID from an occurrence resource name.

func ParseProject

func ParseProject(name string) (string, error)

ParseProject parses the project ID from a project resource name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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