Make Named,Tagged, and Digested implement Reference
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)master
							parent
							
								
									6bd5b8c24e
								
							
						
					
					
						commit
						3943c4165c
					
				| 
						 | 
					@ -98,26 +98,28 @@ func (f *Field) UnmarshalText(p []byte) error {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Named is an object with a full name
 | 
					// Named is an object with a full name
 | 
				
			||||||
type Named interface {
 | 
					type Named interface {
 | 
				
			||||||
 | 
						Reference
 | 
				
			||||||
	Name() string
 | 
						Name() string
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Tagged is an object which has a tag
 | 
					// Tagged is an object which has a tag
 | 
				
			||||||
type Tagged interface {
 | 
					type Tagged interface {
 | 
				
			||||||
 | 
						Reference
 | 
				
			||||||
	Tag() string
 | 
						Tag() string
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Digested is an object which has a digest
 | 
					// Digested is an object which has a digest
 | 
				
			||||||
// in which it can be referenced by
 | 
					// in which it can be referenced by
 | 
				
			||||||
type Digested interface {
 | 
					type Digested interface {
 | 
				
			||||||
 | 
						Reference
 | 
				
			||||||
	Digest() digest.Digest
 | 
						Digest() digest.Digest
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Canonical reference is an object with a fully unique
 | 
					// Canonical reference is an object with a fully unique
 | 
				
			||||||
// name including a name with hostname and digest
 | 
					// name including a name with hostname and digest
 | 
				
			||||||
type Canonical interface {
 | 
					type Canonical interface {
 | 
				
			||||||
	Reference
 | 
					 | 
				
			||||||
	Named
 | 
						Named
 | 
				
			||||||
	Digested
 | 
						Digest() digest.Digest
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// SplitHostname splits a named reference into a
 | 
					// SplitHostname splits a named reference into a
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue